A federal judge in Pennsylvania blocked a broad set of government restrictions designed to curb the use of the Chinese-owned video-sharing app TikTok in the U.S.

U.S. District Judge Wendy Beetlestone issued a temporary injunction on Friday blocking the TikTok ban in response to a lawsuit filed by a group of plaintiffs who use TikTok to make a living. The proposed rules, scheduled to go into effect Nov. 12, would forbid companies from providing the underlying web services that make the app accessible in the U.S.

The U.S. contends that TikTok is a national security threat because its ownership by Beijing-based ByteDance Ltd. gives the Chinese government access to the personal data of millions of Americans. President Donald Trump has demanded that ByteDance find an American buyer for TikTok, and the company is seeking U.S. approval for a deal to sell a stake in the app to Oracle Corp. and Walmart Inc. The administration has cited similar concerns in trying to ban another Chinese app, WeChat, and that move has also been blocked by a U.S. judge.

In Friday’s ruling, Beetlestone said the TikTok prohibitions likely exceed the government’s authority under the emergency powers act it has repeatedly invoked to justify the ban. She also wrote that the ban would cause “irreparable harm” to the TikTok users who sought the injunction, shutting down their “influencing activities.”

“Plaintiffs will lose the ability to engage with their millions of followers on TikTok, and the related brand sponsorships,” she wrote. The judge had previously ruled against the app users in September in an earlier phase of their case.

The Justice Department didn’t immediately respond to a request for comment.

A federal judge in Washington previously blocked a separate portion of Trump’s ban that would have gone into effect in September and prevented TikTok from being downloaded from app stores.

In that case, lawyers for TikTok are also seeking to block the broader Nov. 12 prohibitions. In a filing on Friday, TikTok’s legal team argued that the ban exceeded the government’s authority, and cited the ruling in Pennsylvania.