The U.S. Court of Appeals for the D.C. Circuit on Friday upheld a law forcing video-sharing app TikTok to either be sold or shut down in the United States.