The law would be unconstitutional.
The "Lemon test" is named after Alton Lemon, the plaintiff in the case Lemon v. Kurtzman (1971). It is used in order to analyze legislation concerning religion. It consists of three principles:
- The statute must have a secular legislative purpose. (Also known as the Purpose Prong)
- The principal or primary effect of the statute must not advance nor inhibit religion. (Also known as the Effect Prong)
- The statute must not result in an "excessive government entanglement" with religion. (Also known as the Entanglement Prong)
In this case, the effect of the statute is to advance religion, as it claims that "all justice should be based on faith in a supreme being." It also results in excessive government entanglement with religion. Therefore, it violates the Lemon test.