The ruling delivers another blow to Democrats who are looking to counter recent redistricting in southern states ahead of the midterms.