The landlord, who’s trying to turn the building into homeless accommodation, says he plans to appeal the decision.