The committee advanced the bill over objections of Democrats, who criticized Immigration and Customs Enforcement and the Department of Homeland Security.