The deal, which must still gain formal U.S. approval, would create a new U.S.-based company, TikTok Global, in which Oracle, an American software maker, and Walmart would own 20 percent, placing more equity in the service into the hands of American companies and investors.