The railroad operator’s earnings rose above expectations in the fourth quarter, as the company continued to recover financially from a costly 2023 derailment in Ohio.