The U.S. Supreme Court ruled against TikTok on Friday in its challenge to a federal law requiring the popular short-video app be sold by its Chinese parent company ByteDance or be banned in the United States on Sunday.