A federal judge blocked a controversial New York City law requiring emergency-pregnancy centers to disclose that they don't offer abortion services.

The new law, scheduled to take effect Thursday, poses a significant threat to abortion opponents' First Amendment rights, U.S. District Judge William H. Pauley III said in a sweeping 22-page ruling Wednesday that imposed a preliminary injunction.

The...