Current and former agents said that the investigative strategy — known as allowing drugs to “walk” — amounted to a gamble with public safety.