The National Security Agency is exceeding its power in the fight to thwart terrorism with its controversial bulk collection of telephone metadata, the U.S. Court of Appeals for the Second Circuit ruled Thursday.

A three-judge panel said the surveillance program exceeded the authority given the executive branch by Congress in the Foreign Intelligence Surveillance Act, as amended by the USA Patriot Act, on more than one occasion following the terrorist attacks of Sept. 11, 2001.