Google has agreed to compensate Canadian publishers for using their news content, effectively averting a potential news blackout in the country.