Cities were denied the authority to remove homeless people from the street unless they can provide a bed.