The bill that would allow immigration authorities to detain undocumented immigrants arrested but not convicted for theft will go to Trump’s desk