US president contrasts British position with that of the EU