A global recession and the subsequent stop-and-start economic recovery didn’t stop the major U.S. and Canadian railroads from flexing their pricing power.