Donald Trump signed into law a bill requiring the federal detention of undocumented immigrants accused of crimes.