Section 12. Original bills or vouchers for services and expenses incident to the sittings of the supreme judicial or superior court under section eight of chapter two hundred and thirteen or for court costs for indigent parties in the supreme judicial, appeals, or superior courts, or in any probate, district, municipal, juvenile or housing court under section twenty-seven A to twenty-seven G, inclusive, of chapter two hundred and sixty-one, shall be delivered to the state treasurer.