Legislature poised to enact landmark mental health bill