Immunity— No liability shall lie with a State or a political subdivision of a State that is acting in compliance with a detainer that has been lawfully issued by the Department of Homeland Security in accordance with sections 236 and 287 of the Immigration and Nationality Act (
8 U.S.C. 1226 and 1357) and section 287.7 of title 8, Code of Federal Regulations, solely because the State or political subdivision is holding an alien in compliance with such detainer.