Any agency charged by statute with investigating complaints shall be deemed to have substantial justification for said investigation and for the proceedings subsequent to said investigation. 2.3 Agency means any state board, commission, department, or officer, other than the legislature or the courts, authorized by law to make rules or to determine contested cases, to bring any action at law or