Iran war and inflation hit US president’s approval ratings and weigh on Republican midterm prospects, survey shows