Much of the city’s subway service has been suspended and more than 300 flights have been canceled.