The House approved a war powers resolution to force President Trump to end hostilities with Iran, with four Republicans backing the measure.