TikTok has signed a deal to sell its U.S. operations to a group of investors led by Larry Ellison, the billionaire ally of Trump whose family media and entertainment empire just got bigger.