In response to Times articles, the search giant is changing its algorithm, part of a major shift in how Google polices harmful content.