The justices, divided 5-4, blocked a lower court ruling that found Alabama’s redistricting plan unlawfully dilutes Black votes.