; ; (iv) in subparagraph (D)(ii), by striking subparagraph (B)(iii)(XVI) and inserting subparagraph (B)(iv)(XI) ; and (v) by adding at the end the following: (F) Effective period A tribal energy resource agreement that takes effect pursuant to this subsection shall remain in effect to the extent any provision of the tribal energy resource agreement is consistent with applicable Federal law (including regulations), unless the tribal energy resource agreement is— (i) rescinded by the Secretary pursuant to paragraph (7)(D)(iii)(II); or (ii) voluntarily rescinded by the Indian tribe pursuant to the regulations promulgated under paragraph (8)(B) (or successor regulations). ; (C) in paragraph (4), by striking date of disapproval and all that follows through the end of subparagraph (C) and inserting the following: date of disapproval, provide the Indian tribe with— (A) a detailed, written explanation of— (i) each reason for the disapproval; and (ii) the revisions or changes to the tribal energy resource agreement necessary to address each reason; and (B) an opportunity to revise and resubmit the tribal energy resource agreement. ; (D) in paragraph (6)— (i) in subparagraph (B)— (I) by striking (B) Subject to and inserting the following: (B) Subject only to ; and (II) by striking subparagraph (D) and inserting subparagraphs (C) and (D) ; (ii) in subparagraph (C), in the matter preceding clause (i), by inserting to perform the obligations of the Secretary under this section and before to ensure ; and (iii) in subparagraph (D), by adding at the end the following: (iii) Nothing in this section absolves, limits, or otherwise affects the liability, if any, of the United States for any— (I) term of any lease, business agreement, or right-of-way under this section that is not a negotiated term; or (II) losses that are not the result of a negotiated term, including losses resulting from the failure of the Secretary to perform an obligation of the Secretary under this section.