Religion did a play a role in secularism in terms of the values that aligned well with human rights, but they did come to the conclusion that their foundation will be human rights and anything against it will not be accepted. They made it clear anything that infringes on people be it identity/religion/clan/sexual orientation/choices/free speech will not be allowed. But the things such as the 10 commandments or the moral laws had huge influence but as time went on and where it was found to breach human rights like 'gay rights' it was reformed? why the foundation and pillar of the govt is human beings and it made it clear anything outside of that or breaching it will be considered illegal. Where-as in Somalia anything outside or breaching Shariah law is considered illegal, it's two different 'foundation' of government.But secularism only works now because majority of western and muslim governments where based
Upon Christianity and Islam and they’ve taken a good chunk of their values from these religions
Even colonised countries work based off the British Magna Carta
Where-as in secularism any law passed is checked against human rights in secularism, where-as any law in islamist country is checked against quran/sunnah, you see the foundations are different. One foundation is about god almighty, the other one is about the people not their identity.