Trump is undermining America’s national security by trying to shape analysis to support his world view.