More than a dozen states have passed laws regulating protests in recent years, raising concerns among free-speech advocates.