Republican presidential candidate said he supports TikTok even as a potential ban looms if Chinese-parent company ByteDance fails to divest the short video app’s US assets.