Scottish apparel maker Thistle Garments has secured an £18 million contract to supply waterproof clothing to the armed forces.