The UC agreed to comply with a new state law requesting that it alerts students and staff about immigration enforcement activity on campus, the bill’s author said.