Alabama lawmakers have given final approval to new legislative districts.
The Alabama Senate voted 21-8 to approve the redistricting legislation. It now goes to Governor Kay Ivey for her signature.
The approval brings to a close one of the most contentious issues of the legislative session. Opponents used delaying tactics to protest the plan they argue diminishes the influence of black voters.
The battle over the districts now shifts back to federal court.
Federal judges in January ordered Alabama lawmakers to redraw boundaries before the 2018 elections. The judges ruled Republicans had improperly made race a predominant factor in drawing lines for 12 districts.
Republican leaders say they are confident the plan addresses the problems found by the court. Black caucus members say it makes minimal changes.