Civil liberties advocates on Friday asked a federal court here to end the National Security Agency counterterrorism program that collects data on billions of phone calls by Americans, arguing that it violates the Constitution and was not authorized by Congress.