NYC strikes labor deal, settles equal pay suit