NSA Mass Surveillance Program Illegal, U.S. Court Rules