under section 5339 of title 49, United States Code, formula grants for rural areas under section 5311 of such title, state of good repair grants under section 5337 of such title, high density state apportionments under section 5340(d) of such title, and urbanized area formula grants under section 5307 of such title, $800,000,000 to remain available until expended: Provided , That $350,000,000 shall be available for grants as authorized under section 5339 of such title, of which $300,000,000 shall be available for the buses and bus facilities competitive grants as authorized under section 5339(b) of such title, and $50,000,000 shall be available for the low or no emission grants as authorized under section 5339(c) of such title: Provided further , That $50,000,000 shall be available for formula grants for rural areas as authorized under section 5311 of such title: Provided further , That $200,000,000 shall be available for the state of good repair grants as authorized under section 5337 of such title: Provided further , That $50,000,000 shall be available for the high density state apportionments as authorized under section 5340(d) of such title: Provided further , That $150,000,000 shall be available for urbanized area formula grants as authorized under section 5307 of such title: Provided further , That amounts made available under this heading shall be derived from the general fund: Provided further , That the amounts made available under this heading shall not be subject to any limitation on obligations for transit programs set forth in any Act. Technical assistance and training For necessary expenses to carry out 49 U.S.C. 5314 , $5,000,000. Capital investment grants For necessary expenses to carry out fixed guideway capital investment grants under section 5309 of title 49, United States Code, $2,613,650,000 to remain available until September 30, 2022: Provided , That of the amounts made available under this heading, $2,221,602,500 shall be obligated by December 31, 2020: Provided further , That of the