A Hampshire-based defence company has secured a £251 million missile contract with the Ministry of Defence.