The profit milestone is rare in an AI industry where the cost of computing power routinely outpaces revenue