The firm pumped millions of litres of sewage into rivers, turning them black and killing fish.