Washington and Tehran agree to halt attacks