; and (2) by inserting after subsection (a) the following: (b) Economic development (1) In general The Commissioner may provide assistance under subsection (a) for projects relating to the purposes of this title to a Native community development financial institution, as defined by the Secretary of the Treasury. (2) Priority With regard to not less than 50 percent of the total amount available for assistance under this section, the Commissioner shall give priority to any application seeking assistance for— (A) the development of a tribal code or court system for purposes of economic development, including commercial codes, training for court personnel, regulation pursuant to section 5 of the Act of August 15, 1876 (19 Stat. 200, chapter 289; 25 U.S.C. 261 ), and the development of nonprofit subsidiaries or other tribal business structures; (B) the development of a community development financial institution, including training and administrative expenses; or (C) the development of a tribal master plan for community and economic development and infrastructure. . (b) Technical assistance and training Section 804 of the Native American Programs Act of 1974 ( 42 U.S.C. 2991c ) is amended— (1) in the matter preceding paragraph (1), by striking The Commissioner and inserting the following: (a) In general The Commissioner ; and (2) by adding at the end the following: (b) Priority In providing assistance under subsection (a), the Commissioner shall give priority to any application described in section 803(b)(2). . (c) Authorization of appropriations Section 816 of the Native American Programs Act of 1974 ( 42 U.S.C. 2992d ) is amended— (1) by striking 803(d) each place it appears and inserting 803(e) ; and (2) in subsection (a), by striking 1999, 2000, 2001, and 2002 and inserting 2018 through 2022 .