ByteDance, TikTok’s parent company, is required to sell the app to a U.S.-based buyer or face a nationwide ban.