The bill's GOP supporters said it would help keep communities safe, while dozens of immigrant rights advocates came to the Capitol to oppose it.