The court's previous ruling on this was that you couldn't make "being homeless" illegal, and so laws against things like sleeping in the park were only valid if there was a reasonable alternative available. Generally this meant that the municipality needed to provide homeless shelters.
I can't say that I like this outcome, since now cities are motivated to just run the homeless out of town rather than helping them in any way.