EU summit: Treaty change agreed to