Contrary to Trump's tweets, it was not a military decision - his military advisers were caught completely flat footed by this because he had never discussed it with them.  It seems the only group he did discuss it with were his "evangelical advisers" - that was a couple of weeks ago - so his tweets were nothing more than red meat for a particular segment of his base.