The Post Office certainly had to have known Fujitsu was lying. The Post Office had commissioned an external audit in 2003 that highlighted Horizon's flaws (which they buried).
It should also be noted that the key "experts" accuse the Post Office of misconduct.