A federal appeals court Friday reversed a 2013 decision in the Klayman v. Obama case, in which the National Security Agency's collection of metadata from the plaintiffs' cell phones was deemed a violation of their right to privacy. In Friday's decision, appellate judges reversed the ruling, saying the NSA's actions were in fact constitutional. The case will now be sent back to U.S. District Court Judge Richard Leon for further proceedings.

The appeals court's decision shocked many free-speech advocates, who regarded the earlier ruling as a victory for the First Amendment. In Klayman v. Obama, several individuals -- including Larry Klayman, founder of Freedom Watch, and Charles and Mary Strange, parents of a U.S. serviceman killed in Afghanistan -- charged that the NSA was collecting large amounts of metadata from their cell phones, including numbers dialed and lengths of calls.

Leon ruled in 2013 that the actions of the NSA were unlawful and granted a preliminary injunction to prevent the collection of raw data. The U.S. government immediately filed an appeal, arguing that the governmental agency had the right to monitor its citizens, through powers granted by the Patriot Act, the post-Sept. 11 law that considerably broadened the nation's surveillance capabilities.

Federal appeals court sides w NSA, reversing judge's famous ruling in 2013 re legality of bulk US phone data collectn pic.twitter.com/3m2B916WMo — Spencer Ackerman (@attackerman) August 28, 2015

The case, among similar revelations from whistleblowers such as Edward Snowden and Julian Assange, exposed the extent to which the U.S. had been spying on its own citizens. Journalists and activists alike have called the domestic spying "Orwellian," comparing it to George Orwell's famed novel "1984," in which "Big Brother" was always watching. [Snowden is a former NSA contractor who disclosed classified information on the Internet and is now in exile in Russia; Assange is editor-in-chief of WikiLeaks, a website that has posted sensitive documents. Assange, an Austrailian who faces rape charges in Sweden and espionage charges in the U.S., claimed asylum at the Ecuadorian Embassy in London in 2012. Sweden and Ecuador will begin talks next week regarding the rape charges, the Guardian reported.]

Given that Leon's initial verdict was reversed, the case is now remanded to him for further investigation.