How the intelligence agency changed direction after the Cold War