Federal safety officials from the National Transportation Safety Board are investigating a commuter train crash in Chicago that injured nearly 40 people.