The South Korean automaker will invest $7.4 billion in the U.S. by 2025 as it seeks to become the third-largest maker of eco-friendly vehicles.