The UAE, a major oil producer, has been spending billions of dollars in a push to become a global AI player.