Berkshire’s solid performance in insurance helped offset the softness in railroad due to lower volumes.