The funding cuts had thrown into jeopardy programs providing mental health services, opioid treatment and more.