Exception— A State or political subdivision of a State shall not be deemed a sanctuary jurisdiction based solely on having a policy whereby its officials will not share information regarding, or comply with a request made by the Department of Homeland Security under section 236 or 287 of the Immigration and Nationality Act (
8 U.S.C. 1226 and 1357) to comply with a detainer regarding, an alien who comes forward as a victim or a witness to a criminal offense.