The United States trade deficit in goods and services narrowed to $77.6 billion in May, coming in slightly better than the $78 billion.