WASHINGTON — While serving as Oklahoma’s attorney general, new Environmental Protection Agency chief Scott Pruitt coordinated closely with fossil-fuel companies and special interest groups working to undermine federal efforts to curb planet-warming carbon emissions, newly released emails show.

More than 7,500 pages were released under court order Tuesday evening after an Oklahoma judge ruled that Pruitt had been illegally withholding his correspondence, which is public record under state law, for the last two years.

Pruitt’s office was forced to release the emails after he was sued by the Center for Media and Democracy, a left-leaning advocacy group. Other emails are still being held back pending further review by the judge.

The Republican-dominated Senate voted on Friday to confirm President Donald Trump’s pick to lead EPA. Democrats had sought to delay the vote on Pruitt’s confirmation until the requested emails were released, but Republican leaders used their slim majority to push Pruitt through.

The emails show Pruitt and his staff coordinating their legal strategy with oil and gas industry executives and conservative advocacy groups funded by those profiting from fossil fuels, including the billionaire brothers David and Charles Koch. While serving as Oklahoma’s elected state lawyer for the last six years, Pruitt sued federal agencies more than a dozen times to challenge stricter environmental regulations.

Among the emails is a series of 2013 exchanges between Pruitt’s staff and Richard Moskowitz, general counsel for the Washington-based American Fuel & Petrochemical Manufacturers. The lawyer detailed the industry’s plan to seek waivers from the federal rules boosting the use of renewable fuels and asked Pruitt to make a specific legal argument under air pollution regulations known as the National Ambient Air Quality Standards. The email was copied to Thomas Bates, then Pruitt’s first assistant attorney general.

“We think it would be most effective for Oklahoma to file a separate waiver petition that emphasizes ‘severe environmental harm,’ as this argument is more credible coming from a state with primary responsibility for achieving and maintaining attainment with the NAAQS,” Moskowitz wrote.

Moskowitz’s email was then forwarded to Pruitt’s deputy solicitor general, P. Clayton Eubanks, who replied that he knew little about the federal Renewable Fuel Standard and asked for further instructions about what the trade group wanted them to do.

“I apologize for not being up to speed on the issue,” Eubanks wrote. “I have had the opportunity now to become more familiar with the RFS and its obvious shortcomings and problems. I think it is safe to say that AG Pruitt has an interest in the issue.” He added: “Hopefully I haven’t missed the boat too much on these questions but I want to make sure I fully understand what Oklahoma’s role will be.”

Now working at EPA, Pruitt did not immediately respond to a request for comment Wednesday.

Environmentalists cited Pruitt’s close ties to the fossil fuel industry in opposing his nomination. Like Trump, Pruitt has questioned the validity of scientific studies showing the Earth is warming and that carbon emissions from human activity are the primary cause. As attorney general, Pruitt’s office joined a GOP-led multi-state lawsuit seeking to overturn President Barack Obama’s plan to limit emissions from coal-fired power plants.

During his confirmation hearing last month, Senate Democrats pressed Pruitt on political donations he had raised from energy companies such as Exxon Mobil and Devon Energy, including “dark money” funneled to groups not required to disclose their donors. Pruitt recently resigned from the board of the Rule of Law Defense Fund, a Washington-based group he helped start to support Republican attorneys general.

Video by PBS NewsHour

In another exchange of emails from 2013, executives from Devon, an Oklahoma City-based oil and gas company, asked Pruitt to send an official state response to new regulations on hydraulic fracturing proposed by the U.S. Bureau of Land Management. The company provided a draft letter for Pruitt’s signature, addressed to the White House office that reviews regulations.

“Our goal is to have input to (the office) with a goal of its directing BLM to completely do away with the present thrust,” wrote William Whitsitt, an executive vice president at Devon. Brent Rockwood, another Devon executive, chimed in with suggested edits and additions for Pruitt’s filing.

Eubanks, the deputy solicitor general, later emailed Rockwood to share that a letter bearing Pruitt’s signature had been filed with the federal government.

“Thank you for your guidance and assistance in getting this letter out,” Eubanks wrote.

The favors went both ways. Melissa McLawhorn Houston, Pruitt’s chief of staff, emailed Devon executives asking for a tour of the company’s 50-story headquarters building, saying her sons wanted to go to the top. After Devon Vice President Allen Wright asked others to arrange it, Houston invited him out to lunch.

Pruitt’s staff was also in close contact with the American Legislative Exchange Council and Americans for Prosperity to coordinate opposition to new EPA regulations. Oil industry giant Exxon Mobil is a major donor to ALEC, while AFP is closely linked to Koch Industries, which owns petroleum pipelines.

AFP’s Oklahoma state director Matt Ball emailed Pruitt’s public affairs director with feedback on talking points for the attorney general’s upcoming appearance at a town hall meeting sponsored by the group.

Ball wrote that he would be looking for Pruitt to discuss the “Heavy hand of federal govt infringing on state’s rights by mandating how much Oklahomans pay for electricity.” He added that Pruitt’s official positions were “mostly identical” to that of the industry-funded group.

Associated Press reporter Jason Dearen reported from Gainesville, Florida. AP writers Ted Bridis, Seth Borenstein and Matthew Daly in Washington, Sean Murphy in Oklahoma City, Ellen Knickmeyer in San Francisco, Tammy Webber in Chicago, John Flesher in Traverse City, Michigan, Matthew Brown in Billings, Montana and Kelly P. Kissel in Little Rock, Arkansas, contributed to this story.

WATCH: What EPA’s Scott Pruitt means for environmental policy and regulation