Three months ago, Wall Street punished the world’s largest technology firms for spending enormous amounts to develop artificial intelligence, only to deliver results that failed to justify the costs.