President Trump says Washington no longer needs an agreement with Iran and is seeking a lasting resolution to the war, as tensions with Tehran escalate.