The EU has filed a lawsuit against IBM and two European companies over its troubled border-management system, an internal document has revealed.