CSX Transportation Inc. reached a deal with a former employee to end claims that the railroad company unlawfully fired him for taking federally protected medical leave.