Hyundai Motor Co. and affiliate Kia Motors Corp said they will spend $3.1 billion in the US in the next five years, joining other vehicle manufacturers in announcing investment plans amid threats from President-elect Donald Trump of higher levies on auto imports from Mexico.