After blunder exposing US war plans, future of national security advisor in doubt