TikTok's Chinese parent company, ByteDance, may have to decide between selling its US operations - or face a nationwide ban.