A sweeping Justice Department investigation found “pervasive failings” that have “disguised and perpetuated” problems for years.