Speaking ahead of a Nato summit, the president says US negotiators can keep talking with the Iranians "if they want".