Some are battling state AI laws and threatening to punish candidates who oppose rapid deployment of the technology.