N.Y. Tax Law § 983
(a) The commissioner of taxation and finance may, upon the recommendation of the surrogate, appoint, and may at pleasure remove, assistants and clerks in the surrogate's offices of the following counties, and shall fix their salaries within the amounts appropriated for that purpose:
(c) In each county of the state having a population of over one million, and in each county of the state having a population of over three hundred thousand inhabitants, included in or adjoining a city or county containing a population of over one million inhabitants, the surrogate or surrogates shall each annually receive for compensation for services rendered in connection with the administration of transfer and estate taxes the sum of six thousand eight hundred eighty-two dollars in addition to the salary or compensation paid to such surrogate by the county, but such salary and compensation shall not together exceed the entire salary and compensation paid to a justice of the supreme court in the judicial district in which the county is included. Where a city pays the salary of a surrogate of a county wholly included within such city and such salary is equal to the entire salary and compensation paid to a justice of the supreme court in the judicial district in which the county is included, the state shall pay such city on behalf of such county the sum of six thousand eight hundred eighty-two dollars multiplied by the number of surrogates in such county. Where a county pays the salary of a surrogate and such salary is equal to the entire compensation paid to a justice of the supreme court in the judicial district in which the county is included, the state shall pay such county the sum of six thousand eight hundred eighty-two dollars multiplied by the number of surrogates in such county. The additional compensation provided for by this subsection shall be payable in the same manner as salaries and expenses under this section. The moneys provided to be paid by this subsection to a city or county in lieu of additional compensation shall be paid upon warrant of the comptroller drawn in favor of the city treasurer of the city or of the county treasurer of the county due such amount, which sum shall be paid to said city or county treasurer out of any moneys in the treasury not otherwise appropriated. (d)(1) In each county of the state the surrogate shall receive annually for such services rendered in connection with the administration of transfer and estate taxes as are not incident to holding courts or performing duties as a judicial officer the respective sums following:
(e) The commissioner of taxation and finance is authorized to designate and retain counsel to represent the department and to pay the expenses thereby incurred out of money appropriated for such purpose in the following circumstances: