TikTok signs deal to sell U.S. operations to American investors including Oracle and Silver Lake, ending years-long battle over ByteDance ownership.