Except as otherwise provided in this article, boards or officers expending funds derived from the levying of taxes shall expend the funds only for the purposes for which they were raised.