Much of the growth momentum came from exports, which propelled the country’s trade surplus to a record high of just under $1 trillion last year.