(b) Subject to subsection (a), and subject to any applicable terms and provisions of the authorizing resolution and any trust agreement with respect to an endowment trust fund created by a board, all moneys held in and forming a part of such fund may be expended and distributed, and any other properties contributed to such fund may be managed, used, and disposed of, for such purpose or purposes as the board shall from time to time generally determine, and in accordance with such procedures as may be set out in either the authorizing resolution or any trust agreement respecting such fund, and pursuant to either or both, any resolution adopted at any time by the directors, and subject to such procedures and the direction and approval of the board, one or more contracts between such board and any individual, organization, corporation, or other person, including, but not limited to, any trade organization. Provided, however, that any such contract shall not contain any provisions inconsistent with any provisions of this division or of the authorizing resolution or any trust agreement respecting such fund; and provided further, that the initial term of any such contract between a board and a trade organization may not exceed 40 years, but such contract may thereafter be renewed or extended for such additional term or terms, not exceeding, in the aggregate, 40 years, as the board deems advisable.