The point is that knowledge of God is not prohibited under the First Amendment.
It can have a secular purpose and have a relationship to God because God was presumed to be both over the state and the church, and separation of church and state was never meant to separate God from government.
Indeed, the acknowledgement of God is not synonymous with religion.