NEW YORK — The operators of Aqueduct Racetrack will pay a $150,000 civil penalty to settle a complaint that it violated the federal Clean Water Act.

Federal authorities had claimed the track was discharging polluted wastewater. It contained animal wash water and detergent, and feed waste. In 2013 and 2014, an estimated 1.26 million gallons of wastewater eventually ended up in nearby Jamaica Bay.

Up to 450 horses are housed at the New York City track during the racing season.

New York Racing Association spokesman Patrick McKenna says when officials learned of the contamination issue from the Environmental Protection Agency in 2015 they quickly worked to remedy the problem. He said work has already been completed to prevent future discharges.

The settlement also requires NYRA to post inspection results on a public website.

This story has been corrected to show that the racing association is called the New York Racing Association, not New York Racing Authority.