The bill, which would detain undocumented immigrants accused of theft and other crimes, has bipartisan support.