A US law requires TikTok's Chinese owner, ByteDance, to sell the social media company to an American firm or face a ban.