The court’s conservative majority said it had upheld the landmark law, as liberal justices accused the court of gutting the ...