; or (E) the Secretary otherwise has reasonable grounds to believe that the individual who is the subject of the detainer is an inadmissible or deportable alien. (3) Transfer of custody If the Federal, State, or local law enforcement entity, official or other personnel to whom a detainer is issued complies with the detainer and detains for purposes of transfer of custody to the Department of Homeland Security the individual who is the subject of the detainer, the Department may take custody of the individual within 48 hours (excluding weekends and holidays), but in no instance more than 96 hours, following the date that the individual is otherwise to be released from the custody of the relevant Federal, State, or local law enforcement entity. . (b) Immunity (1) In general A State or a political subdivision of a State (and the officials and personnel of the State or subdivision acting in their official capacities), and a nongovernmental entity (and its personnel) contracted by the State or political subdivision for the purpose of providing detention, acting in compliance with a Department of Homeland Security detainer issued pursuant to this section who temporarily holds an alien in its custody pursuant to the terms of a detainer so that the alien may be taken into the custody of the Department of Homeland Security, shall be considered to be acting under color of Federal authority for purposes of determining their liability and shall be held harmless for their compliance with the detainer in any suit seeking any punitive, compensatory, or other monetary damages. (2) Federal Government as defendant In any civil action arising out of the compliance with a Department of Homeland Security detainer by a State or a political subdivision of a State (and the officials and personnel of the State or subdivision acting in their official capacities), or a nongovernmental entity (and its personnel) contracted by the State or political subdivision for the purpose of providing detention, the United States Government shall be the