N.Y. Not-for-Profit Corporation Law § 203
(a) No act of a corporation and no transfer of real or personal property to or by a corporation, otherwise lawful, shall, if duly approved or authorized by a judge, court or administrative department or agency as required, be invalid by reason of the fact that the corporation was without capacity or power to do such act or to make or receive such transfer, but such lack of capacity or power may be asserted: