; and (ii) resolution of any contested administrative decision; and (E) a requirement that any member or allottee with a claim relating to the enforcement of rights of the member or allottee under the Tribal Water Code, or to the quantity of water allocated to land of the allottee, shall exhaust all remedies available to the member or allottee under Tribal law before initiating an action against the United States or petitioning the Secretary pursuant to subsection (d)(5). (3) Action by secretary (A) In general During the period beginning on the date of enactment of this Act and ending on the date on which a Tribal Water Code described in paragraphs (1) and (2) is enacted, the Secretary shall administer, with respect to the rights of allottees, the Tribal water right in accordance with this Act. (B) Approval The Tribal Water Code described in paragraphs (1) and (2) shall not be valid unless— (i) the provisions of the Tribal Water Code required by paragraph (2) are approved by the Secretary