The ruling departed from court opinions in the past decade narrowing the scope of the Voting Rights Act.