Here are three competing stories about how the idea of separation of church and state relates to the First Amendment clause that provides that "Congress shall make no law respecting an establishment of religion."
Constitutional Law | Law
History as Ideology: Philip Hamburger's Separation of Church and State,
Calif. L. Rev.
Available at: https://scholarship.law.columbia.edu/faculty_scholarship/3413