Google's announcement comes following criticism of internet firms from politicians for not dealing with extremist.