The history of UK government IT contracts is indeed a very sad one.
From memory:
UK Covid test and trace system: £37 billion pretty much wasted
UK NHS IT system: £12 billion pretty much wasted
And I'm sure there are lots of others.
And yet we are still giving huge projects to the same companies. Amazingly, Fujitsu's contract for the Horizons system has recently been renewed.