New Zealand has pledged $10 million to a global fund to help developing countries respond to climate change damage.