New York codifies expansion of 'involuntary commitment' power