Election officials in 31 states said they would like to replace the machines, but in 22 of them they had no idea where the money would come from to do this.