The Japanese investment firm is entwining its fortunes with a company that expects to lose billions of dollars for years to come, in the hope that it will emerge as the leader in the AI race.