When President Donald Trump introduced his tariff policy earlier this year, it looked like a disaster for automakers.