In a rebuff of Trump, the House voted for the first time to end the war in Iran. Four Republicans joined with Democrats to support the resolution.