The contract with three UK defence firms will secure 300 skilled roles in Edinburgh and more than 200 elsewhere in the UK.