TikTok lost its legal challenge with the US Supreme Court, with a divest or get banned ruling on the social media platform.