The decision could impact those who were jailed before the SAFE-T Act took effect.