; and (ii) $225,000,000 shall be used for Safety, Capacity, Maintenance, and Major Repairs for which amounts are authorized to be appropriated under section 10211 of the Research and Development, Competition, and Innovation Act ( Public Law 117–167 ). (H) 12 percent of those remaining amounts, but not more than $500,000,000 cumulatively, shall be made available to the Under Secretary to carry out the Telecommunications Workforce Training Grant Program established under section 503. (I) 4 percent of those remaining amounts, but not more than $25,000,000 cumulatively, shall be made available to the Under Secretary and the Secretary of Defense for the purpose of research and development, engineering studies, economic analyses, activities with respect to systems, or other planning activities to improve efficiency and effectiveness of spectrum use of the Department of Defense. (2) Distribution If the maximum amount permitted under any subparagraph of paragraph (1) is reached, whether through covered auction proceeds or appropriations to the program specified in that subparagraph, any remaining proceeds from the amount of proceeds of covered auctions described in that paragraph shall be deposited pro rata based on the original distribution to all subparagraphs of paragraph (1) for which the maximum amount permitted has not been met. (3) Deficit reduction After the amounts required to be made available by paragraphs (1) and (2) are so made available, any remaining amounts shall be deposited in the general fund of the Treasury, where such amounts shall be dedicated for the sole purpose of deficit reduction. (d) FCC borrowing authority (1) In general Subject to the limitation under paragraph (2), not later than 90 days after the date of enactment of this Act, the Commission may borrow from the Treasury of the United States an amount not to exceed— (A) $3,080,000,000 to carry out the Secure and Trusted Communications Networks Act of 2019 ( 47 U.S.C. 1601 et seq. )