IHC orders release of prisoners jailed over minor crimes