Washington — The Supreme Court on Friday upheld a new law that would lead to a ban of the social media platform TikTok, clearing the way for the widely popular app to shutter in the U.S. as soon as Sunday.

“We conclude that the challenged provisions do not violate the petitioners’ First Amendment rights,” the court said in a unanimous unsigned opinion, which upholds the lower court decision against TikTok. Justices Sonia Sotomayor and Neil Gorsuch wrote separately, with Gorsuch agreeing with the outcome of the case but splitting with the court’s reasoning.