In any civil action brought in the district court by the state, its political subdivisions or the nonprofit corporations authorized to be formed under the Educational Assistance Act [Chapter 21, Article 21A NMSA 1978], when judgment or stipulation for payment is rendered in favor of the state, political subdivision or corporation, the filing fee exempt from being paid by the state, political subdivision or corporation pursuant to Section 34-6-40 NMSA 1978 shall be taxed as costs against the nonprevailing party and paid to the district court clerk from the first money paid by the nonprevailing party on the judgement or stipulation for payment.
NMS § 34-6-40.1