ByteDance, the China-based parent company of TikTok, has finalized a long-anticipated agreement to restructure the app’s U.S.