A Washington federal judge on Wednesday ordered the Administrative Office of the U.S. Courts not to enforce a code of conduct aimed at restricting political activities by roughly 1,000 rank-and-file employees of the agency, which provides centralized support to the judiciary.

In a memorandum opinion supporting a preliminary injunction, U.S. District Judge Christopher Cooper said he recognized the office’s goal of maintaining confidence in the integrity and neutrality of the federal judiciary.