British premier accepts invitation by bloc to discuss security matters in latest sign of improving relations