Potential cost of 'group litigation orders' was so serious that Whitehall feared disclosing them would threaten Britain’s position in EU