Both exports and imports rose after the Supreme Court struck down many of the president’s highest levies in February.