No payments, except payments of expenses in criminal prosecutions or for assignment of counsel by a court, in either case as authorized by law, or of the compensation or salaries of elected county officers other than a clerk of courts, a district attorney, a register of probate or other officer whose salary is provided for in section ninety-four of chapter two hundred and twenty-one, or of outstan