A CSX Corp Locomotive Engine

A CSX Corp Locomotive Engine

Tim Boyle/Bloomberg

CSX Corp.’s container cargoes have increased about 10 percent for two straight quarters as eastern U.S. railroads invest billions in a business that threatens the trucking industry’s most lucrative shipments.