The data showed imports dipped and exports rose in the month before the Supreme Court struck down most of the president’s tariffs.