The U.S. and China have agreed on a framework deal for TikTok that could transfer control of the platform to U.S. ownership.