Trump cancels planned Iran attacks, says deal nearly 'finalized'