The Wikimedia Foundation has secured deals with Microsoft, Meta and Amazon to monetise content for AI training.