Top-secret national security documents leaked to the Guardian newspaper reveal that the United States government compensated the tech companies that signed on to participate in the controversial NSA spy program known as Prism.

The Guardian published on Friday new documentation attributed to former intelligence contractor Edward Snowden in which it’s suggested that the US National Security Agency spent millions of dollars making sure the biggest names on the Internet were kept compliant with an international surveillance program disclosed by the leaker earlier this year.

According to the paperwork provided by Snowden and discussed by the Guardian’s Ewen MacAskill on Friday, the NSA emptied millions of dollars on ensuring Google, Yahoo, Microsoft and Facebook were able to share information sent over the Web with the federal government.

“The material provides the first evidence of a financial relationship between the tech companies and the NSA,” wrote MacAskill.

The Guardian article cites a top-secret NSA document from December 2012 in which the agency said through a newsletter that it spent millions to keep the tech companies cooperating with the government after the Foreign Intelligence Surveillance Court ruled that it was a violation of the US Constitution’s Fourth Amendment to be collecting purely domestic communications through the Prism program.

"Last year's problems resulted in multiple extensions to the certifications' expiration dates which cost millions of dollars for Prism providers to implement each successive extension – costs covered by Special Source Operations," it reads in part.

Snowden, the 30-year-old leaker who has exasperated the US and British governments through a steady stream of classified disclosures, told the Guardian that the Special Source Operations unit handles surveillance programs, such as Prism, in which telecommunication companies and Internet providers sign-on to “corporate partnerships” with Uncle Sam.

Asked about the latest disclosure, a representative for Yahoo told the Guardian, "Federal law requires the US government to reimburse providers for costs incurred to respond to compulsory legal process imposed by the government. We have requested reimbursement consistent with this law."

Facebook denied that it received compensation from the US government ever for facilitating the flow of private data. A representative for Google told the Guardian, "We await the US government's response to our petition to publish more national security request data, which will show that our compliance with American national security laws falls far short of the wild claims still being made in the press today."

In the wake of the first NSA disclosures leaked by Mr. Snowden, lawmakers in the US and abroad have debated whether or not the secretive surveillance programs, such as the Internet one operated under the name Prism, strike the proper balance between privacy and security. President Barack Obama and his administration have made numerous claims that those operations exist with significant oversight to prevent any errors, including constitutional violations, but other documents released by Snowden in the wake of the first disclosures have shown that the NSA has accidentally collected the personal correspondence of Americans at least thousands of times annually. According to their latest report, the federal government is spending millions to find a way to keep those companies only collecting data that invades the privacy of those outside the US.