Heavy rains lashed New York on Thursday, killing two people in the city, Mayor Eric Adams said, while accompanying storms disrupted flights and weather authorities warned of floods in some areas.