The House voted on Tuesday to pass a GOP-led bill to require detention of undocumented migrants charged with certain crimes, but the measure faces an uncertain future in the Senate in a sign of the challenges facing Republicans despite controlling both chambers of Congress.