N.Y. Public Authorities Law § 1120-F
The authority, the town and the other municipalities, in carrying out their respective powers and duties under this title, shall be deemed to be acting in a governmental capacity and in the performance of an essential governmental function.