TikTok owner ByteDance says a ban would infringe of free speech rights of 170 million users, but courts may defer to lawmakers on national security questions.