The US-Iran war and Strait of Hormuz shipping disruptions have been linked to Republican losses in the midterms, heightening pressure on President Trump.