Tennessee lawmakers pass bill to involuntarily commit some defendants judged incompetent for trial