A landmark court ruling has ensured that directors can be held liable for the environmental damage done by their companies.