Tech companies have funnelled billions of dollars into Middle East AI projects — the Iran war means questions will be asked about future investments