Lower courts had invalidated the GOP-friendly maps as partisan gerrymandering and ordered them redrawn before the 2020 election.