; and (B) include— (i) legal and budgetary research; and (ii) internal Tribal government planning, training, and organizational preparation. (e) Grants (1) In general Subject to the availability of appropriations, an Indian Tribe or Tribal organization that meets the requirements of paragraphs (2) and (3) of subsection (c) shall be eligible for grants— (A) to plan for participation in self-governance; and (B) to negotiate the terms of participation by the Indian Tribe or Tribal organization in self-governance, as set forth in a compact and a funding agreement. (2) Receipt of grant not required Receipt of a grant under paragraph (1) shall not be a requirement of participation in self-governance. . (d) Funding agreements Section 403 of the Indian Self-Determination and Education Assistance Act ( 25 U.S.C. 5363 ) is amended— (1) by striking subsection (a) and inserting the following: (a) Authorization The Secretary shall, on the request of any Indian Tribe or Tribal organization, negotiate and enter into a written funding agreement with the governing body of the Indian Tribe or the Tribal organization in a manner consistent with— (1) the trust responsibility of the Federal Government, treaty obligations, and the government-to-government relationship between Indian Tribes and the United States; and (2) subsection (b). ; (2) in subsection (b)— (A) in paragraph (1)— (i) in the matter preceding subparagraph (A), by striking without regard to the agency or office of the Bureau of Indian Affairs and inserting the Office of the Assistant Secretary for Indian Affairs, and the Office of the Special Trustee for American Indians, without regard to the agency or office of that Bureau or those Offices ; (ii) by redesignating subparagraphs (A) and (B) as clauses (i) and (ii), respectively, and indenting the margins of such clauses accordingly; (iii) by striking including any program and inserting the following: including— (A) any program