The ruling “promises to unleash only chaos,” Justice Sonia Sotomayor said in a dissent to the court's majority opinion.