A federal judge has temporarily blocked the Trump administration from opening a new immigration detention facility northeast of Denver until it completes an assessment of potential environmental impacts.

The order Wednesday from U.S. District Court Judge S. Kato Crews does not completely block U.S. Immigration and Customs Enforcement — or its contractor, Geo Group — from reopening a shuttered Hudson private prison and converting it to immigrant detention. But the ruling could derail the facility from opening for at least several months at a minimum while the Homeland Security Department completes an environmental assessment and an environmental impact statement.

According to the Clean Air Task Force, the median review timeline for an environmental assessment, which is less involved, is roughly four months — while environmental impact statements have a median time span of nearly three years.

Should the Hudson center open about 30 miles northeast of Denver, it will become Colorado’s second immigrant detention center. The current facility, in Aurora, is also operated by Geo.

Crews found that a delay to the Hudson project would have little substantive impact on the federal government.

“Defendants have unabashedly carried out their ‘current (immigration) enforcement posture’ without the Big Horn Facility; they may continue to act on their immigration goals while taking the time to conduct a proper analysis of the site as the law requires,” he wrote, using ICE and Geo’s name for the planned Hudson facility.

ICE and Geo announced in July that they’d agreed to a $528.6 million contract to reopen the prison and use it to house nearly 1,200 immigrant detainees. In September, Colorado Attorney General Phil Weiser sued, arguing the federal government hadn’t conducted appropriate environmental reviews. Other residents and groups have also filed suit to block the facility from opening.

“Despite the fact that the proposed facility would nearly double the size of the town’s population, the federal government has failed to prepare the necessary analysis of the facility’s impact on the local community and resources,” Weiser said in a statement when the lawsuit was filed. “We’re asking the court to stop any further activities to open and operate the Hudson site until (Homeland Security) and ICE conduct the legal analysis required by law.”

This is a developing story and will be updated.

Stay up-to-date with Colorado Politics by signing up for our weekly newsletter, The Spot.