The First Amendment only refers to establishment of a state church, like the Church of England. It wasn't meant to exclude religion from either the public square or government entirely. Passing a bill that in part is inspired by religious principles isn't something banned by the Constitution.
Bookmarks