ByteDance has finalized a deal giving American investors 80.1% ownership of TikTok's U.S. operations, ending a six-year legal battle over Chinese control.