The Justice Department has abandoned its antitrust probe of four automakers that sided with California over President Donald Trump in a fight over the future of fuel economy and emissions requirements.

The inquiry had targeted Ford Motor Co., Honda Motor Co., BMW Group and Volkswagen Group over their agreement last year with California regulators to voluntarily meet the state’s targets for fuel economy and tailpipe emissions. The decision was seen as undercutting Trump’s plan to relax the national requirements and was decried by the administration at the time as a “PR stunt.”

California Governor Gavin Newsom cheered the Justice Department’s decision to back down, calling it “a big loss for the president and his weaponization of federal agencies.”

“These trumped up charges were always a sham — a blatant attempt by the Trump administration to prevent more automakers from joining California and agreeing to stronger emissions standards,” Newsom said in an emailed statement.

The move to back down from the investigation was confirmed by two people familiar with the matter who spoke on the condition they not be identified. Ford and BMW also said that the Justice Department had closed the investigation.

The department and the California Air Resources Board declined to comment. Representatives of Honda and VW didn’t immediately comment. The New York Times previously reported the move.

The Justice Department raised concerns in August that the deal might be in violation of antitrust statutes, and the automakers were sent civil investigative demands late last year.

The EPA and the Transportation Department also warned California regulators last September that the pact appeared “inconsistent with federal law” and its commitments “may result in legal consequences.“

California officials had maintained that discussions with automakers over the emissions requirements were conducted individually, rather than with the entire group.

The Trump administration has moved on multiple fronts against California since the auto pact, with federal regulators rapping the state’s work to clean up air pollution and blasting it for allowing piles of human feces” and pollution to foul nearby waterways.

The Trump administration is preparing to finalize a rule easing Obama administration emissions and fuel-economy requirements this spring.

Separately, it already moved ahead with the most controversial aspect of its sweeping plan to reshape auto efficiency rules by stripping California of its authority to set tailpipe greenhouse gas standards that are tougher than federal requirements. Federal agencies finalized that move last fall, and litigation over the issue is underway now.