The US president said any potential troop deployment would be part of efforts to dismantle Iran’s nuclear programme.