The bloc’s 27 leaders met to tackle defense spending, support for Ukraine, competitiveness, the Middle East and migration.