The deficit in the broadest measure of foreign trade fell in the summer to the lowest level in nearly two years, reflecting stronger exports of commercial aircraft and other goods and a jump in the sales of services such as airline tickets to foreigners.