At least in my region, the ACLU has sued and won a ruling saying that cops can't ticket people sleeping rough if the shelters are full/not accepting people.