Amid the city’s homelessness crisis, some landlords have turned buildings meant for low-cost housing into tourist hotels.