In a 6-3 ruling, the justices narrowed how a key provision of the Voting Rights Act can be enforced.