New York Attorney General Letitia James and six other state attorneys general filed suit Tuesday against the Trump administration for a deal me made with a French company to end a lease for an offshore wind farm. File Photo by Pat Benic/UPI | License Photo

June 2 (UPI) -- Seven Democrat-led states sued the President Donald Trump administration Tuesday over a move to block a windfarm off the coast of New York.

In March, the administration made a deal with French energy company TotalEnergies to pay it $928 million to cancel construction of wind farms off the shores of New York and North Carolina. The deal would require the company to invest the same amount in oil, natural gas and liquified natural gas production in the United States.

The lawsuit, filed by New York Attorney General Letitia James, calls the deal illegal. James filed the suit in the U.S. District Court for the District of Columbia along with attorneys general of New Jersey, Connecticut, Maine, Massachusetts, Rhode Island and Vermont.

The planned wind farm was known as Attentive Energy and would have been 54 miles south of Jones Beach, N.Y. It would have produced enough energy to power more than a million homes.