The Pentagon has agreed to invest $400 million in MP Materials via newly issued preferred shares convertible into common stock.