Note that the Constitution references the Declaration.
There's are unmistakable references to the a theistic worldview in the Constitution of the US.
Technically Newdow and the judge are correct. The first amendment says "Congress shall make no law..." The "under God" in the pledge was added by an act of Congress.