You have no obligation to spend money on a space that isn't used.
If you are truly renting your apartment home while you're away, you're actually fine with doing so with respect to this law. You're probably violating your lease or HOA contract, but that's your problem.
If you're buying or renting apartments to sublet as ersatz hotels, then you have a problem. It's not society's problem to save your from a poor investment choice.
This legislation passed in an environment where the US Attorney is likely tapping the phones of any remaining unindicted political players in Albany. Hotels aren't well organized to begin with, and I doubt they had an opportunity to make huge contributions to influence this. Real estate moguls like reduced housing supply as they get to reap higher rents, so they don't care. (Feel free to link to the board of elections filings if I'm wrong).
The public outcry against Airbnb is strong and consistent, and this law imho is unusually democratic and fair one. Everyone got what they claimed to want. True Airbnb hosts can continue to share their homes. You can continue to rent them. The only party hurt is Airbnb who has been deceptive about their true intentions from day 1 -- so fuck them.