; or (II) through contracts with State agencies, private entities, or nonprofit entities. ; (5) by redesignating paragraph (7) as paragraph (8); and (6) by inserting after paragraph (6) the following: (7) Federal share (A) Required aggregate non-Federal share (i) In general The average annual non-Federal share of the total cost of all projects carried out under this subsection in a State for a fiscal year shall be not less than the non-Federal share authorized for the State under section 120(b). (ii) Single projects Subject to clause (i), the Federal share of the total cost of a single project carried out under this subsection may be up to 100 percent. (B) Flexible financing Subject to subparagraph (A), notwithstanding section 120— (i) funds made available to carry out section 148 may be credited toward the non-Federal share of the costs of a project type under this subsection that the Secretary determines to have an expected safety benefit; and (ii) the non-Federal share for a project under this subsection may be calculated on a project, multiple-project, or program basis. . 1110. Nationally significant freight and highway projects (a) In general Section 117 of title 23, United States Code, is amended— (1) in subsection (a)(2)— (A) in subparagraph (A), by inserting in and across rural and urban areas after people ; and (B) in subparagraph (F), by inserting , including highways that support movement of energy equipment after security ; (2) in subsection (b), by adding at the end the following: (3) Grant administration The Secretary may— (A) retain not more than a total of 2 percent of the funds made available to carry out this section for the National Surface Transportation and Innovative Finance Bureau to review applications for grants under this section; and (B) transfer portions of the funds retained under subparagraph (A) to the relevant Administrators to fund the award and oversight of grants provided under this section.