Senate Bill 2420, which would have gone into effect on Jan. 1, likely violates the First Amendment, according to the ruling.