European lawmakers have voted to escape a treaty that lets investors sue governments in private courts for pursuing policies that stop the planet from heating. Fossil fuel companies have used the…