The world’s richest man has lost in cases ranging from shareholder fraud to claims that his rivals stole AI secrets