The U.S. Supreme Court on Friday unanimously upheld the federal law banning TikTok, beginning Sunday, unless it's sold by its China-based parent company, holding that the risk to national security posed by its ties to China overcomes concerns about limiting speech.