The purpose of this legislation is to give state governors the authority to inspect immigration detention facilities within their states for health and safety compliance. It aims to ensure that these facilities meet basic standards for the treatment of detainees, especially in light of recent concerns about conditions and deaths in custody. Key provisions of the law include the right for governors or designated state officials to conduct unannounced inspections of immigration detention facilities.