Section 37F. The school committee of a city or town may employ legal counsel for the general purposes of the committee and may expend money therefor from the funds appropriated by said city or town for school purposes. Said legal counsel shall not be subject to the provisions of section nine A of chapter thirty or the provisions of chapter thirty-one.