Foreign intelligence officials are treading carefully as they navigate a president with a history of spilling secrets.