We don't need indefinite money, we just need to realize that spending more on care has better outcomes than doing what's immediately cheaper. A rehabilitated prisoner is less likely to re-enter the system, but we don't measure that cost.
This is the same with healthcare and schools. We let the system be run by a bunch of short-term get rich quick charlatans who get in the way of more long-term prosperity for everyone. It's easier to measure the immediate cost, so we cut there and ignore the long-term expense it creates.
What's worse is that there are many examples for the US to learn from abroad but generations of propaganda have lead us to believe that our deficiencies are what makes us exceptional.