A senior Iranian official said the Republican losses in the midterms were caused by Trump's "warmongering against Iran."