Iran has said it agrees in principle to the deal .