Illegal New Year parties in SoHo and Queens, where hundreds have gathered, are closed