The trip presents a test of Trump’s ability to cleanse his party of those who oppose him but also to try to stay on an economic message strained by the military action in Iran.