The Supreme Court upheld a rule requiring TikTok to divest from its parent company due to national security concerns.