A federal appeals court ruled Thursday that the National Security Agency’s bulk collection of Americans’ telephone records is illegal. The U.S. Court of Appeals for the 2nd Circuit in New York determined that the collection of metadata was not authorized by Congress due in part to the secrecy of the program.