The Senate is expected to take up an immigration bill on Thursday that would require the detention of undocumented immigrants who are charged with certain crimes.