This racy phrase is simply a mnemonic some aspiring lawyers use when studying for the bar.
Laws respecting religion are valid if:
• they serve a secular purpose
• their effect neither advances nor inhibits religion
• and they don't result in "excessive government entanglement" with religion