TokTok and ByteDance sought an injunction to halt the looming ban on the social media app used by about 170 million Americans while they appeal a lower court’s ruling that upheld the law.