An EU summit pledged to free up hundreds of billions of euros for security.