Europe heads off Gibraltar spat to save Brexit summit