Law, to go into effect Friday, annuls practice of releasing security prisoners serving light sentences a few weeks early to make room for more serious offenders