The problem with this ruling is not so much that CN has to pay in this instance, it is the precedent that the government can do whatever it wants, even if not directly related to the clean up, and then bill the company.  Incompetence, politics and bureaucracy may combine to abuse this.