This is not a problem of "algorithms" but rather of stupid policies. A programming manager at Google would have been fired if he had put such obvious errors in PageRank (or whatever they call it these days).
Algorithms and data can only improve effectiveness of these systems and agencies. However, their use has been combined with drastic funding cuts. These cuts and the resulting malfunctions aren't exactly a fundamental problem with data science.