Re: This is not the first time
Why the hell none of their high priced lawyers and accountants raised alarm bells about the legality and accuracy
Very likely they did raise such concerns, and were ignored because "We're the government, we can't do anything wrong".
There are a great many examples of such known-illegal actions by governments. Rather a lot of flagship UK Home Office policy was known to be "likely illegal" when it was drafted, but the minister ignored this advice and instead wasted millions and forced charities to fight it in the courts.
This particular one looks almost identical to the Post Office Horizon scandal, except for the time taken to acknowledge the computer was flat wrong.