Oracle Corp. would provide security and help oversee the re-creation of a new US version of TikTok’s algorithm under a deal taking shape to sell the popular Chinese-owned app to a consortium of American investors, a White House official said, addressing a key concern raised by lawmakers in Washington.