The pledge was born out of shareholder activism — and was withdrawn as regulators crack down on greenwashing.