Mayor Bill de Blasio says the city faces “an unprecedented threat” and needs a “wartime mentality”.