1. Short title This Act may be cited as the No Federal Funding to Benefit Sanctuary Cities Act . 2. Protecting local and Federal law enforcement officers who cooperate to safeguard communities (a) In general A State, a political subdivision of a State, or an officer, employee, or agent of such State or political subdivision that takes action to comply with a detainer issued by the Department of Homeland Security under section 236 or 287 of the Immigration and Nationality Act ( 8 U.S.C. 1226 and 1357)— (1) shall be deemed to be acting as an agent of the Department of Homeland Security; and (2) with regard to such actions, shall have all authority available to officers and employees of the Department of Homeland Security. (b) Legal proceedings In any legal proceeding brought against a State, a political subdivision of a State, or an officer, employee, or agent of such State or political subdivision, which challenges the legality of the seizure or detention of an individual pursuant to a detainer issued by the Department of Homeland Security under section 236 or 287 of the Immigration and Nationality Act ( 8 U.S.C. 1226 and 1357)— (1) no liability shall lie against the State or political subdivision of a State for actions taken in compliance with the detainer; and (2) if the actions of the officer, employee, or agent of the State or political subdivision were taken in compliance with the detainer— (A) the officer, employee, or agent shall be deemed— (i) to be an employee of the Federal Government and an investigative or law enforcement officer; and (ii) to have been acting within the scope of his or her employment under section 1346(b) and chapter 171 of title 28, United States Code; (B) section 1346(b) of title 28, United States Code, shall provide the exclusive remedy for the plaintiff