UK’s tough reaction ‘has taught Jean-Claude Juncker a lesson’