The Supreme Court upheld a law requiring a sale or ban of TikTok, but Justice Sonia Sotomayor disagreed with part of the decision.