State lawmakers said they've come up with a temporary fix to prevent deep cuts to mental health and substance abuse services.