US President Donald Trump says he wants a permanent agreement to prevent Iran from developing nuclear weapons.