Republican lawmakers passed the restriction last year but a lower court blocked enforcement of the law.