The crew tried to slow down after an overheated wheel bearing set off an alarm, but 38 cars still ended up leaving the tracks, the National Transportation Safety Board said.