Washington has all but locked Beijing out of the Middle East’s trillion-dollar artificial intelligence ambitions.