At issue are the standards for involuntary commitment of people with mental-health struggles who run afoul of the law.