In any proceeding involving the validity or enforcement of, or relating to, any contract by an agency, the agency is conclusively deemed to have been established and authorized to transact business and exercise its powers upon proof of the filing with the Secretary of State of such an ordinance.