Striking New York City nurses reach deal with hospitals