In a 6-3 ruling, the justices vacated a lower-court order requiring Alabama's congressional map to include two majority-black voting districts.