The Biden administration had challenged a Republican-led redistricting plan that diluted the political power of minorities.