I view this thru the lens that a landlord can prohibit pets in a rental apartment. So can condos and co-op boards. Smoking is a logical extension of that, given that smoke pervades the common areas, and creates a nuisance (nevermind if the building's ventilation system is faulty so that smoke gets exchanged between apartments).
Smoking is already banned in most hotels in the city. This is a measure who's time has come.