An international energy agreement allows corporations to sue nation-states for phasing out fossil fuels.