Be it further enacted, that the Mayor and Council of said City shall have the power and authority to employ an attorney to represent said city in any litigation to which said city may be a party, or in any matter in which said city or the municipal authorities thereof may need legal counsel. Their said city attorney shall be paid for his services such fees as may be reasonable and just, and as may be agreed upon between himself and the mayor and council.