Note that very important word PERMITTED. The law does NOT say that plea agreements MUST be released for an Freedom Of Information request. (Whereas the ethics are clear-- making plea agreements public is unethical.)
State law trumps any ethical concerns, (Edmondson said.) *BUZZ* I don't think so..
State law does not contradict the ethics. Therefore it does not "trump" them.
Check mate-- in releasing the plea agreements ethics were clearly violated.
Perhaps you forget that the prosecutors office is part of the executive branch and is fully subject to the state statutes. Certainly a valid argument can be made that the judicially created rules of ethics (which are often vague) are trumped by the specific dictates of state law, especially when we are dealing with a part of the executive branch.