A spike in imports accounts for a large share of the setback, reflecting a scramble by companies to secure goods from overseas ahead of tariffs from the Trump administration