The director of the National Security Agency told Congress on Wednesday that "dozens" of terrorism threats had been halted by the agency's huge database of the logs of nearly every domestic phone call made by Americans, while a senator briefed on the program disclosed that the telephone records are destroyed after five years.