The board of supervisors creating any such district shall have the authority to enter into cooperative agreements with the state or federal government or both; to obtain financial assistance in the form of loans or grants as may be available from the state or federal government, or both. It is the purpose and intention of this section to authorize districts to do any and all things necessary to secure the financial aid or cooperation of the state or federal government.