India’s Prime Minister Narendra Modi has secured consensus on the wording around the war in Ukraine as part of the G20 leaders' declaration.