Small Pacific islands vulnerable to rising sea levels won a symbolic victory at the United Nations on Wednesday with the passage of a resolution recognizing climate change as a possible threat to security.