The ECT allowed fossil-fuel companies to sue governments for billions in compensation for lost profits.