Act, loans to a territory or possession, and instrumentalities and local governments thereof, may be cancelled in whole or in part only at the discretion of the Secretary of Homeland Security in consultation with the Secretary of the Treasury: Provided further , That notwithstanding any other provision of law, the Secretary of Homeland Security, in consultation with the Secretary of the Treasury, shall determine the terms, conditions, eligible uses, and timing and amount of Federal disbursements of loans issued to a territory or possession, and instrumentalities and local governments thereof: Provided further , That such costs, including the cost of modifying such loans, shall be as defined in section 502 of the Congressional Budget Act of 1974 ( 2 U.S.C. 661a ): Provided further , That FEMA may transfer up to 1.5 percent of the amount under this paragraph to the Disaster Assistance Direct Loan Program Account for administrative expenses to carry out under this paragraph the direct loan program, as authorized by section 417 of the Stafford Act: Provided further , That of the amount provided under this paragraph for transfer, up to $150,000,000 may be transferred to the Disaster Assistance Direct Loan Program Account for the cost to lend a territory or possession of the United States that portion of assistance for which the territory or possession is responsible under the cost-sharing provisions of the major disaster declaration for Hurricanes Irma or Maria, as authorized under section 319 of the Robert T. Stafford Disaster Relief and Emergency Assistance Act ( 42 U.S.C. 5162 ): Provided further , That of the amount provided under this paragraph for transfer, up to $1,000,000 may be transferred to the Disaster Assistance Direct Loan Program Account for administrative expenses to carry out the Advance of Non-Federal Share program, as authorized by section 319 of the Stafford Act. The amount provided under this heading is designated by the Congress as being for an emergency requirement pursuant to section