Even if Trump immediately pulls out of his war on Iran, he will leave behind tensions that are likely to destabilise energy security and global trade for years.