For fiscal year 2023, $3,800,000,000. (4) For fiscal year 2024, $3,800,000,000. (5) For fiscal year 2025, $3,800,000,000. (h) Consolidated rail infrastructure and safety improvements (1) In general There are authorized to be appropriated to the Secretary to carry out section 22907 of title 49, United States Code, the following amounts: (A) For fiscal year 2021, $1,400,000,000. (B) For fiscal year 2022, $1,400,000,000. (C) For fiscal year 2023, $1,400,000,000. (D) For fiscal year 2024, $1,400,000,000. (E) For fiscal year 2025, $1,400,000,000. (2) Project management oversight The Secretary may withhold up to 1 percent from the amount appropriated under paragraph (1) for the costs of project management oversight of grants carried out under section 22907 of title 49, United States Code. (i) Railroad rehabilitation and improvement financing (1) In general There are authorized to be appropriated to the Secretary for payment of credit risk premiums in accordance with section 9104 of this division and section 502 of the Railroad Revitalization and Regulatory Reform Act of 1976 ( 45 U.S.C. 822 ) $30,000,000 for each of fiscal years 2021 through 2025, to remain available until expended. (2) Refund of premium There are authorized to be appropriated to the Secretary $70,000,000 to repay the credit risk premium under section 502 of the Railroad Revitalization and Regulatory Reform Act of 1976 ( 45 U.S.C. 822 ) in accordance with section 9104. (j) Restoration and enhancement grants (1) In general There are authorized to be appropriated to the Secretary to carry out section 22908 of title 49, United States Code, $20,000,000 for each of fiscal years 2021 through 2025. (2) Project management oversight The Secretary may withhold up to 1 percent from the amount appropriated under paragraph (1) for the costs of project management oversight of grants carried out under section 22908 of title 49, United States Code. (k) Grade crossing separation grants (1) In general There are authorized to be appropriated to the Secretary to carry