Major eastern U.S. railroads stand to gain whether or not the Panama Canal expansion brings more freight to the ports they serve.