; by (B) the amounts authorized to be appropriated for each such program for such fiscal year; and (5) distribute the obligation limitation for Federal-aid highways, 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 National Highway Performance Program in section 119 of title 23, United States Code, that are exempt from the limitation under subsection (b)(12) and the amounts apportioned under sections 202 and 204 of that 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 such 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 such fiscal year. (b) Exceptions from obligation limitation The obligation limitation for Federal-aid highways shall not apply to obligations under or for— (1) section 125 of title 23, United States Code; (2) section 147 of the Surface Transportation Assistance Act of 1978 ( 23 U.S.C. 144 note; 92 Stat. 2714); (3) section 9 of the Federal-Aid Highway Act of 1981 (95 Stat. 1701); (4) subsections (b) and (j) of section 131 of the Surface Transportation Assistance Act of 1982 (96 Stat. 2119); (5) subsections (b) and (c) of section 149 of the Surface Transportation and Uniform Relocation Assistance Act of 1987 (101 Stat. 198); (6) sections 1103 through 1108 of the Intermodal Surface Transportation Efficiency Act of 1991 (105 Stat. 2027); (7) section 157 of title 23, United States Code (as in effect on June 8, 1998); (8) section 105 of title 23, United States Code (as in effect for fiscal years 1998 through 2004, but only in an amount equal to $639,000,000 for each of those fiscal years)