Not specific to NYC, but the United States always seems to have plenty of money for the criminal justice system and incarceration, but relatively little for drug addiction rehab and treatment.
But look at the cost per day to keep one person in jail for a nonviolent drug offense...
Decriminalization in Portugal: https://en.wikipedia.org/wiki/Drug_policy_of_Portugal