New York Laws
Article 81 - Costs Generally
8109 - Defendant's Costs Against the State.

(b) Payment of defendant's costs against the state. Where costs are
awarded to the defendant and against the state in an action brought by a
public officer, and the proceedings have not been stayed, the
comptroller shall draw his warrant upon the treasurer for the payment of
the costs out of any money in the treasury appropriated for that
purpose, upon the production to him of an exemplified copy of the
judgment or order awarding the costs, a copy of a taxed bill of costs
and a certificate of the attorney-general to the effect that the action
was brought pursuant to law. The fees of the clerk for the exemplified
copy shall be certified thereupon by him and included in the warrant.