EU summit wrap-up: Cameron secures compromise deal