"Religion", as the word is used in the establishment clause, means "the duty we owe to our Creator." The duty to place ourselves "under God" and to "trust in God" are duties we owe to the Creator, and are therefore "religion" as the word is used in the establishment clause.
That doesn't wash with what was meant by an establishment of religion in the founders' era.