Trump's war in the Middle East could have consequences far beyond the region.