The UK government has responded to a petition filed by the game preservation campaign Stop Killing Games, and if you were hoping for a major change in the law to ensure situations like The Crew can never happen again...well, you're going to be disappointed.
As spotted by Eurogamer, the UK government's response can be found on the Parliamentary petition page, and the summary confirms that there are "no plans to amend UK consumer law on disabling video games".
In the full statement, the government says it's "aware of issues relating to the life-span of digital content, including video games", but that there's no legal requirement for software companies to support their products, claiming that "decision-making" on that front is for the companies themselves, not the law.

The government goes on to say that supporting older games or software "may be difficult and expensive for businesses", particularly if supporting that software means it "needs to interact with new technologies".
Further on in the statement, the government acknowledges that "if software is offered for sale that is not supported by the provider, then this should be made clear, for example on product webpages and physical packaging".
As Eurogamer notes, however, the problem comes when a publisher decides to switch off servers on which a product that has already been sold is reliant. It doesn't do current owners many favors if notices appear on product webpages for that product; the fact remains that they'll no longer be able to play it come shutdown.
Unfortunately, though, it looks like if you're in the UK and you want companies to be held to account for deciding to shut down servers for online-only games on a whim without offering an offline mode, you're out of luck.

Stop Killing Games' campaign began, in part, thanks to Ubisoft's decision to sunset The Crew in December 2023. Since the game is, or was, reliant on its servers, the cessation of online services meant nobody would be able to play The Crew anymore after its servers went dark in March 2024.
That game is just one of several being delisted from digital storefronts, and although many remain playable if their publishers deign to include offline modes (assuming you've already bought them, of course), others have entire chunks of functionality missing, and that's if they're not downright unplayable.
Some organizations are fighting back against the scourge of video game delisting, though.
The GOG Preservation Program is one such initiative; it aims to keep games supported even if their publishers or developers end official support. Similarly, organizations like the Video Game History Foundation are fighting to keep gaming history open and accessible to all.