Let the NRA agree to this...it will be the mental health lobby that blocks it.
Besides, I’m not sure that preventing mentally ill (If defined as involuntarily committed) people from purchasing a firearm wouldn’t be considered a reasonable restriction that would survive strict scrutiny.
It is already the law (Federal) and it makes no difference whether the commitment is voluntary or involuntary.