Inspectors say it may take two years for repairs to be completed at the building on Academy Street in Inwood.
The more than 100 displaced residents claim they were given just hours to pack up and leave after the city issued a vacate order.
About 90 complaints and violations were lodged against the building and its landlord.