The government’s laws cancelling social security payments for some accused of crimes turn a safety net into a weapon for punishing people.