An outbreak of Legionnaires’ disease in New York City that led to seven deaths and 84 people hospitalized has ended, the New York City Department of Health announced in a statement on Friday.