Congress, the groups said, had given Mr. Chertoff too much power.

“It is only happenchance that the secretary’s waiver in this case involved laws protecting the environment and historic resources,” the groups told Judge Ellen Segal Huvelle of Federal District Court in Washington. “He could equally have waived the requirements of the Fair Labor Relations Act to halt a strike, or the provisions of the Occupational Safety and Health Act in order to force workers to endure unsafe working conditions.”

Image A meeting at a border fence near Tijuana. The fence is the focus of a challenge to a 2005 law. Credit... Luis Acosta/Agence France-Presse — Getty Images

(Happenchance? You don’t see that word every day, and certainly not in a court filing.)

The groups said Congress cannot hand over unbridled power to the executive branch even as it cuts the courts out of the picture. They relied mostly on a 1998 Supreme Court decision striking down the Line Item Veto Act, which had allowed the president to cancel parts of laws.

In December, Judge Huvelle rejected the challenge and allowed construction to proceed. She said she had no jurisdiction to decide whether Mr. Chertoff was correct in saying the waivers were necessary, and she ruled that the delegation of power to him was constitutional.

“The court concludes that it lacks the power to invalidate the waiver provision merely because of the unlimited number of statutes that could potentially be encompassed,” Judge Huvelle wrote.

A petition asking the Supreme Court to hear the case was filed three months later.

Did you notice the missing step? In addition to forbidding judges from second-guessing Mr. Chertoff’s decisions, Congress forbade federal appeals courts from becoming involved at all. After losing before Judge Huvelle, the groups’ only recourse is to hope the Supreme Court decides to hear their appeal.

In their petition, the environmental groups said the Supreme Court had never upheld a broad delegation of power like that given to Mr. Chertoff without the possibility of judicial review of executive branch determinations. Nor, they said, has any appeals court.