Trump declared that the deal complies with a 2024 law requiring ByteDance to divest control or face a prohibition in the US of the popular video-sharing platform.