The measure restricts immigration arrests around state courthouses. Republicans have criticized the law and suggested it would face legal challenges.