Do the same thing we did with the nuclear arms race: Treaties to limit and control it.
Obviously, we would have had more political leverage if our leaders had started working on a treaty before they crossed enough moral red lines to start a tech revolt, but we did not elect the sort of leaders that would do that.