The directors shall have the power to employ an attorney or attorneys for the purpose of advising them or advising other officers of the district and to prosecute or defend actions brought by or against the district, or any of its officers relative to district matters.