The House on Tuesday approved a GOP-led bill to require detention of undocumented migrants charged with certain crimes.