A small town in Alabama has disbanded its police force because it could not legally fire an officer who made a racist joke about slavery.