The world’s richest man has been passed up for his arch-nemesis in Trump’s flagship tech project. How the tables turn