Staff were ‘wrongly blamed’ for collapse of secret deal for former workers at retailer, court told