In stunning admission, NYC officials say they left migrant families stranded without shelter