(1) Except as provided in paragraphs (2) and (3), for purposes of this subchapter the term State or local public benefit means
(A) any grant, contract, loan, professional license, or commercial license provided by an agency of a State or local government or by appropriated funds of a State or local government; and
(B) any retirement, welfare, health, disability, public or assisted housing, postsecondary education, food assistance, unemployment benefit, or any other similar benefit for which payments or assistance are provided to an individual, household, or family eligibility unit by an agency of a State or local government or by appropriated funds of a State or local government.
(2) Such term shall not apply
(A) to any contract, professional license, or commercial license for a nonimmigrant whose visa for entry is related to such employment in the United States, or to a citizen of a freely associated state, if section 141 of the applicable compact of free association approved in Public Law 99239 or 99658 (or a successor provision) is in effect;
(B) with respect to benefits for an alien who as a work authorized nonimmigrant or as an alien lawfully admitted for permanent residence under the Immigration and Nationality Act [
8 U.S.C.
1101 et seq.] qualified for such benefits and for whom the United States under reciprocal treaty agreements is required to pay benefits, as determined by the Secretary of State, after consultation with the Attorney General; or
(C) to the issuance of a professional license to, or the renewal of a professional license by, a foreign national not physically present in the United States.