Notwithstanding any provision to the contrary set forth in this chapter or in any local ordinance or resolution, compliance with the conditions, limitations, and restrictions set forth in an NPDES permit issued by the ADEM or EPA shall be deemed to be compliance for purposes of this chapter and any ordinance or resolution adopted hereunder, and such compliance shall preclude the initiation, commencement, or continuation of any enforcement action authorized under this chapter or any ordinance or resolution.