Similar laws nationwide are being challenged and blocked by federal courts over potential First Amendment violations.