UN passes resolution in favor of veto