Be it further enacted, that said city commission and any of the officers of said city, who may be sued for any act done in his official capacity, may justify under this Charter, and the provisions of this Charter may be pleaded and shall be full defense against any such action, for any act or acts, done by them or either of them under and in accordance with the provisions of this Charter, and the ordinances passed in pursuance thereof.