The judge’s ruling is the first major setback for President Donald Trump’s campaign against offshore wind energy, which he launched on his first day in office by putting all federal wind leases and permits under review. The Trump administration in recent weeks has also said it will pull the permits of two other wind projects off the coast of Massachusetts and Maryland.

The Interior Department issued the stop-work order in August despite Revolution Wind being 80 percent complete, citing vague national security concerns. The Defense Department had previously reviewed and approved the project.

District Judge Royce Lamberth in D.C. wrote in his ruling that the developers of the project are likely to succeed in their lawsuit against the administration and are “likely to suffer irreparable harm in the absence of an injunction.” He also wrote that “maintaining the status quo by granting an injunction is in the public’s interest.”