Wikipedia is licensing AI access to Microsoft, Meta and more as AI bots drive up costs and human pageviews decline.