Three of the world’s leading AI companies are racing to go public, opening yet another front in the high-stakes competition over the technology.