First, the legislature must have adopted the law with a neutral or non-religious purpose.
Second, the statute's principal or primary effect must be one that neither advances nor inhibits religion.
Third, the statute must not result in an excessive entanglement of government with religion.
The Lemon test is just one of several establishment clause cases setting requisites which even Justice Breyer admits are irreconcilible. Obviously the prayer before a session of congress opens or the phrase “In God We Trust” on currency funks the “Lemon” test but passes the “ceremonial language or practices” test. In any event, if we can’t separate the specific provisions of sharia law from the religion that informs them then the word “religious” has become a meaningless weasle-word that can be twisted to one’s purpose. Of course this type of sophistry is what makes up 90% of the practice of constitutional law.