EU pledges 40 billion euros for 'just transition' from fossil fuels