Jobs to support the plant, maintain robots, deliver goods, and all the other loose ends that will still take some time to be supplanted by robots will come to the US. This 'will' bring some jobs both directly, and second order. Thats always better than nothing.
Then there are all the other benefits of more secure supply chain.
And when it comes to electricity, Arizona has no shortage of Solar. and the US has no shortage of Energy options or materials when needed.
Your concern about energy is valid point, it does need to be primarily clean energy to run all this AI stuff, (same case with bitcoin). While the US can easily produce energy, which includes wind, We need some reasonably competitive production of solar panels for domestic use. even if those are also robots.