New York has declared a public health emergency following a measles outbreak.