The city’s new rules are attracting opposition because there isn’t enough room in local shelters or enough affordable apartments for everyone who lives in hotels.