No funds appropriated for the purpose of carrying out any applicable program may be used for the transportation of students or teachers (or for the purchase of equipment for such transportation) in order to overcome racial imbalance in any
school or
school system, or for the transportation of students or teachers (or for the purchase of equipment for such transportation) in order to carry out a plan of racial desegregation of any
school or
school system, except for funds appropriated pursuant to title VIII of the
Elementary and Secondary Education Act of 1965 [
20 U.S.C.
7701 et seq.], but not including any portion of such funds as are attributable to children counted under section 8003(d) of such Act [
20 U.S.C.
7703 (d)] or residing on property described in section 8013(10) of such Act [
20 U.S.C.
7713 (10)].