In some races, the AI-backed political groups have spent more than the candidates they are backing.