Anyway, that money is generally spent on equipment and processes to clean up after whatever the company is doing. Collection pods for contaminated water. Scrubbers on chimneys. Direct pay to inspectors to come out and make sure you aren't trying to cheat to save money. That sort of thing. It spreads out across the entire economy. Markets and industries are formed to support finding the cheapest way to keep the processes in question from damaging the environment and requiring much more expensive cleanup (think EPA superfund and class action lawsuits over medical conditions suffered by nearby communities) after the fact.