An aerial image of Consumer Energy’s J.H. Campbell Generating Complex is seen in Ottawa County, Mich., Sept. 21, 2024. (Joel Bissell/Kalamazoo Gazette via AP, File)

U.S. Energy Secretary Chris Wright speaks after the signing of an oil agreement between the US and Venezuela at Miraflores presidential palace in Caracas, Venezuela, Wednesday, Sept. 2, 2026. (AP Photo/Pedro Mattey)

WASHINGTON (AP) — In a defeat for the Trump administration, a federal court on Friday ruled that the Energy Department exceeded its authority when it forced a Michigan coal-fired power to stay open past its scheduled retirement date last year.

Energy Secretary Chris Wright had said the 64-year-old J.H. Campbell plant was needed to ensure reliable electricity in the region and used emergency powers to keep it operating. Environmental groups and three states — Michigan, Illinois and Minnesota — went to court to try to overturn orders keeping the plant online.

The U.S. Court of Appeals for the District of Columbia Circuit sided with the states and the groups, saying there was no real emergency under the law.