The legislation, known as Jack’s Law, allows police to use handheld metal detectors to search people without a warrant.