Voters in at least 38 jurisdictions across the country passed bans or restrictions on data centers Tuesday, reflecting the widespread public revulsion to the facilities and adding to the growing pushback on the ambitions of the artificial intelligence industry.