An inspiring story at the intersection of two American crises: mental health and the often overwhelmed criminal justice system.