Advocates who have pushed for a change in the law say it unfairly punishes poor people. Opponents of the legislation said it would reward criminals.