At a supportive-housing facility, chronically unhoused New Yorkers get a new lease on life, with a gym, a computer room—and on-site mental-health and medical services.