The president also met with Prime Minister David Cameron and discussed the United Kingdom's possible exit from the EU.