TikTok is challenging a law that would see it banned in the US in a matter of days.