A federal judge in New York ruled Friday that the National Security Agency's bulk data collection program is legal.
(CNN) -- The National Security Agency notched a much-needed win in court, after a series of setbacks over the legality and even the usefulness of its massive data collection program.
A federal judge in New York ruled Friday that the National Security Agency's bulk collection of data on nearly every phone call made in the United States is legal.
The ruling contrasts with another ruling last week by a federal judge in Washington, who called the same program "almost Orwellian" and likely unconstitutional.
In his ruling Friday, U.S. District Judge William Pauley said that while the NSA's program under Section 215 of the Patriot Act has become the center of controversy since it was revealed by leaks by former NSA contractor Edward Snowden, it is legal.
"But the question of whether that program should be conducted is for the other two coordinate branches of government to decide."