In a rare dissent from the bench, Justice Sonia Sotomayor said that the Supreme Court undid “centuries of political practice, ...