Notwithstanding any other provision of law, no grant for which application is made after February 1, 1978, shall be made under this subchapter for any treatment works unless only such unmanufactured articles, materials, and supplies as have been mined or produced in the United States, and only such manufactured articles, materials, and supplies as have been manufactured in the United States, substantially all from articles, materials, or supplies mined, produced, or manufactured, as the case may be, in the United States will be used in such treatment works. This section shall not apply in any case where the Administrator determines, based upon those factors the Administrator deems relevant, including the available resources of the agency, it to be inconsistent with the public interest (including multilateral government procurement agreements) or the cost to be unreasonable, or if articles, materials, or supplies of the class or kind to be used or the articles, materials, or supplies from which they are manufactured are not mined, produced, or manufactured, as the case may be, in the United States in sufficient and reasonably available commercial quantities and of a satisfactory quality.