A United States federal judge said Friday that the National Security Agency’s controversial bulk phone data collection program doesn’t violate the law.

That ruling came courtesy of US District Judge William Pauley, who decided in favor of the NSA early Friday in a case filed this past June by the American Civil Liberties Union against Director of National Intelligence James Clapper.

Judge Pauley admitted in a decision penned in the Southern District of New York court that the NSA "vacuums up information about virtually every telephone call to, from, or within the United States," but that no evidence exists that the spy agency abuses this program to spy on people without ties to terrorist organizations.

“There is no evidence that the government has used any of the bulk telephony metadata it collected for any purpose other than investigating and disrupting terrorist attacks,” Pauley wrote towards the end of his 54-page ruling.

The ACLU filed their lawsuit in June of this year just hours after reports revealed that the US government has been regularly compelling telecommunication companies for the basic call records pertaining to millions of Americans.

“Because the NSA’s aggregation of metadata constitutes an invasion of privacy and an unreasonable search, it is unconstitutional under the Fourth Amendment,” the ACLU alleged when they filed suit. “The call-tracking program also violates the First Amendment, because it vacuums up sensitive information about associational and expressive activity.”

Following Judge Pauley's ruling the ACLU issued a response, saying that it was "extremely disappointed" with the decision, which the organization feels "misinterprets the relevant statutes, understates the privacy implications of the government’s surveillance and misapplies a narrow and outdated precedent to read away core constitutional protections," according to Jameel Jaffer, the ACLU's deputy legal director.

“We intend to appeal and look forward to making our case in the Second Circuit,” said Jaffer.

Judge Pauley acknowledged in his ruling that the program does indeed slurp up massive amounts of sensitive data, but insisted that abuse has been infrequent and excusable given the advantages of the alleged counterterrorism tool.

Less than two weeks ago, District Judge Richard Leon issued a grossly different decision while weighing in on a similar case filed by plaintiffs in the US District Court for the District of Columbia.

“Because the government can use daily metadata collection to engage in ‘repetitive, surreptitious surveillance of a citizen’s private goings on,’ the NSA database ‘implicated the Fourth Amendment each time a government official monitors it,” Judge Leon ruled.

In the ACLU v Clapper case, however, Pauley said, “Whether the Fourth Amendment protects bulk telephony metadata is ultimately a question of reasonableness.”

Both suits were filed in the immediate aftermath of reports published this past June after former intelligence contractor Edward Snowden leaked classified national security documents to reporters at the Washington Post and Britain’s the Guardian newspaper.

“For me, in terms of personal satisfaction, the mission’s already accomplished,” Snowden told the Post’s Barton Gellman for an article published in the paper earlier this week. “I already won. As soon as the journalists were able to work, everything that I had been trying to do was validated. Because, remember, I didn’t want to change society. I wanted to give society a chance to determine if it should change itself.”

Indeed, Judge Leon’s ruling and the recommendations of a task force assembled by US President Barack Obama amid public outrage about the revelations asked the government to make significant changes to the intelligence gathering operations waged by the NSA. But after a handful of victories for privacy advocates in recent days, Judge Pauley’s decision on Friday is perhaps the most significant win yet for the Obama administration in its fight to keep the NSA’s programs intact.

The bulk collection of telephony metadata, Pauley said, “represents the government’s counterpunch to al-Qaeda” and helps the intelligence community keep the communications of terrorist groups well within its radar.

‘‘The government learned from its mistake and adapted to confront a new enemy: a terror network capable of orchestrating attacks across the world. It launched a number of counter-measures, including a bulk telephony metadata collection program — a wide net that could find and isolate gossamer contacts among suspected terrorists in an ocean of seemingly disconnected data,’’ he said.