Former subpostmaster Sir Alan Bates has accused the government of presiding over “quasi-kangaroo courts”.