Paul McCartney has contributed a track to a new compilation LP protesting the U.K. government's recent law changes around artificial intelligence.