Senate Republicans who were berated by President Donald Trump over opposition to his war in Iran held a late-night vote Wednesday to try to appease him.