Though some cities profit from collecting fines on poor defendants and jailing them when they can’t pay up, the costs to government resources and taxpayers prove hefty.