Chicago’s commuter rail system is preparing for a major shift away from diesel power.