Writing for the majority, Justice Neil Gorsuch contended that the Eighth Amendment, which bans cruel and unusual punishment, “serves many important functions, but it does not authorize federal judges” to “dictate this Nation’s homelessness policy.” Instead, he suggested, such a task should fall to the American people.

Justice Sonia Sotomayor dissented, in an opinion joined by Justices Elena Kagan and Ketanji Brown Jackson. She argued that the majority’s ruling “focuses almost exclusively on the needs of local government and leaves the most vulnerable in our society with an impossible choice: Either stay awake or be arrested.”

https://www.supremecourt.gov/opinions/23pdf/23-175_19m2.pdf