TikTok finalizes a deal to form a new American entity