Countries agree to stop funding fossil fuels