; by (B) the amounts authorized to be appropriated for each such program for the fiscal year; and (5) shall distribute the obligation authority provided by subsection (a), less the aggregate amounts not distributed under paragraphs (1) and (2) and the amounts distributed under paragraph (4), for Federal-aid highway and highway safety construction programs that are apportioned by the Secretary under title 23, United States Code (other than the amounts apportioned for the surface transportation program in section 133(d)(1)(B) of title 23, United States Code, that are exempt from the limitation under subsection (b)(15) and the amounts apportioned under sections 202 and 204 of such title) in the proportion that— (A) amounts authorized to be appropriated for the programs that are apportioned under title 23, United States Code, to each State for the fiscal year; bears to (B) the total of the amounts authorized to be appropriated for the programs that are apportioned under title 23, United States Code, to all States for the fiscal year. (d) Redistribution of unused obligation authority Notwithstanding subsection (c), the Secretary of Transportation shall, after August 1 of each of fiscal years 2022 through 2025— (1) revise a distribution of the obligation authority made available under subsection (c) if an amount distributed cannot be obligated during that fiscal year; and (2) redistribute sufficient amounts to those States able to obligate amounts in addition to those previously distributed during that fiscal year, giving priority to those States having large unobligated balances of funds apportioned under section 104 of title 23, United States Code. (e) Special limitation (1) In general Except as provided in paragraph (2), obligation limitations imposed by subsection (a) shall apply to contract authority for— (A) transportation research programs carried out under chapter 5 of title 23, United States Code, and title V of this Act