How can the Supreme Court's directive to release prisoners who have completed their sentence influence prison reforms in India?

The Supreme Court has ordered the release of prisoners who have already served their sentences. I want to examine how such judicial interventions can drive broader changes in the criminal justice and prison systems.