The commissioner is hereby authorized to borrow money on behalf of the state, when in the judgment of the commissioner it becomes necessary in order to meet appropriations for any fiscal year in anticipation of the collection of the revenues for that year. Money borrowed shall be used only for the purposes and within the amounts of appropriations authorized.