A law requiring TikTok’s Chinese parent ByteDance to sell the app by Jan. 19 or face a total US ban was upheld in US appeals court on Friday – setting up a potential Supreme Court showdown between the two sides.