The US Department of Justice cautioned states on Wednesday that undertaking partisan election audits like the one underway in Arizona could violate federal law, sending a warning shot to states as more Republican state lawmakers move forward with their own controversial probes.