How the US outmanoeuvred Palestine and used Nigeria to avoid using its veto at the UN Security Council.