The U.S. Supreme Court on Friday unanimously upheld the federal law banning the social media video app unless it is sold by its China-based parent company.