Republicans control the Legislature but approved the new lines to avoid a court fight.