Did they announce that they weren't firing him because of his job performance, but because of the color of his skin and in the name of their racial equity policy? Had he been on the job and performing in an outstanding manner for 20 years?
I mean, I get your post, but the situation is not comparable...even if some may consider it quite outrageous. Perhaps that fellow has potential grounds for a lawsuit, as well.
What makes this situation so outrageous is the official announcement that they are putting his job to market because he is white. Like, they said directly that it isn't because of his job-related performance or any such thing...that it is based upon race. They could have found any number of reasons...but they officially announced this one.
I think they will get away with it because this is for a 5 year fixed-term contract and he is at the end of his term, so he is not being let go because he isn't "diverse" or white, rather his contract has come to an end. (I suspect there is no automatic renewal clause in his contract.)
Rather than simply award him with a new fixed term contract without any competition for the role - they are saying they are going to put it out to tender.
Here in the UK a local authority would have a legal obligation to put such a contract back out to tender at the end of the term, they wouldn't be able to give him a new contract on the nod*.
(*Of course, corruption does happen, and such contracts are awarded without due process taking place.)