TikTok is hoping to invalidate a law that would force it to divest from its Chinese parent company or face a ban.