I don't have a problem if a hotel wants to do this unprovoked. There is nothing wrong with legitimate charity. What I DO have a problem with would be the government stepping in and forcing the hotels to do it.
You also have to look at other cities that did something similar and see how that turned out. Not to mention the type of people that tend to be homeless in these large cities. Are the hotel staff going to be properly able to deal with those type of people? No they aren't. What kind of compensation are the hotels going to get for doing this? That's assuming they are going to get any in the first place. Look at how bad some of the camps are. The hotels are going to end up just as bad, potentially even worse. How are the hotels supposed to recover if they do get to that state? I doubt they would even be able to. In the end it's extremely high risk vs little to no reward.