The companies that built billion-dollar businesses mining Bitcoin are on track to generate most of their revenue from artificial intelligence by the end of the year — a milestone that marks an entire industry’s pivot away from the cryptocurrency that created it.