How does the Supreme Court’s position on Sabarimala reflect the balance between judicial intervention and legislative authority in social reforms?

The Supreme Court hearing emphasized that legislatures, not courts, should enact social reforms. I want to explore how this principle affects the pace and nature of social change in India.