Sophisticated satellite systems will be built for the armed forces in Portsmouth after a new multi-million pound contract was signed.