For years, the Supreme Court’s Republican majority had been almost unrelentingly hostile toward voting rights plaintiffs, and especially toward the Voting Rights Act - a federal law that bans race discrimination in elections.