NATO’s members have met for a summit in Madrid to discuss the war in Ukraine and the alliance’s response.