Accounting or investment bankingWhile such information is largely protected, there are specific exceptions. You didn't indicate what sort of job you are looking at.
You can get it sealed provided that the commitment was "by reason of fraud, error, or falsified documents." Also if it has been three yaers since you were an inpatient and it is demonstrated that you are not currently suffering from mental illness, you can petition to have it removed. It however IS NOT automatic, the state will grant it only if it is presumed to be both your and societies best interest (kind of akin to parole).
What do you mean by “you were committed rather than being formally convicted”?You act like there is a single "record." A background check looks at a variety of sources. What can be disseminated from mental health is pretty well laid out by NY State and federal laws. Except in the cases where there is a clear societal need to block those with such a history, the information is protected. As far as a private company, not involved in governmental or security work, or that requiring a firearm, or the like, it's not likely to be disclosable to the employer. As I stated, as for financial checks, these are more concerned with you personal credit and financial involvements and criminal activity. So, unless this commitment had something to do with a crime (i.e., you were committed rather than being formally convicted), it's not likely permitted to be disclosed.