The court said ensuring the release of all eligible undertrial prisoners is a critical step toward addressing the inhuman conditions and overcrowding in jails.