They were among the market’s best performers as the global economy recovered in the past two years. But this year many transportation-related stocks — and the funds that invest in them — have hit a rough patch.