The trade deficit in goods ballooned to its highest level in history, reaching nearly $900 billion in 2018.