TikTok agrees to place U.S. operations under a new investor-controlled entity, with ByteDance retaining a minority stake.