In most cases, a lack of funding and difficulties implementing new technologies were at the root of their problems, prosecutors said.