The controversial decision affords communities across the country the power to ban people from sleeping or camping in public spaces.