Missouri Gov. Jay Nixon said the law would punish poor people, while supporters said it would make them healthier