An officer is not liable to any civil or criminal action for doing in good faith, or failing in good faith to do, any act or thing for the purpose of exercising a power under this Act to keep a person who is the subject of a criminal justice stay certificate or criminal justice stay warrant in immigration detention.