The board of elections shall have the authority to engage the services of legal counsel, by contract or otherwise, to represent the interests of the board of elections in any matter with respect to which legal counsel for the board of elections is not provided by the county governing authority; and the board of elections is authorized to order the payment of fees, compensation, and expenses therefor from the general fund of the county treasury.