The director of national intelligence and the CIA chief faced hard questioning from Democrats over the national security debacle.