UEFA cannot change the UK labour laws but they can change the wording within their own guidelines to limit the maximum length to say 5 years for FFP purposes negating the advantages.
As pointed out by others it does run the risk of a player failing and the club being stuck with them on a long contract.