New York bans gatherings, nonessential workers to stay home