BRUSSELS—European Union leaders on Thursday committed to working together to bolster the continent’s defenses and to free up hundreds of billions of euros for security after US President Donald ...