WASHINGTON — Three federal appeals court judges struggled Tuesday over whether the National Security Agency’s phone data surveillance program is an intelligence-gathering tool that makes the nation safer or an intrusive threat that endangers privacy. The judges — all appointed by Republican presidents — expressed uncertainty about where to draw the line between legal surveillance and violations of constitutional rights in the age of terrorism. Since 2006, the FBI has obtained orders from the …