Court rules restitution can be paid from money inmates get