In the weeks leading to the summit, sharply differing views on the war had threatened to derail the meeting, with the West demanding members call out Moscow for the invasion and Russia saying it would block any resolution that did not reflect its position.