The legislation has drawn criticism from some pro-government figures, as well as opposition activists.