Tehran views midterm results as a rejection of Trump's 'war on Iran', signalling US frustration with foreign policy.