A consensus among national security insiders in Washington is that Trump launched the war at least in part out of hubris, after scoring what he perceived as several easy military triumphs elsewhere.