Norfolk Southern has agreed to pay more than $310 million to settle claims and cover costs stemming from the February 2023 derailment of a freight train carrying hazardous materials in an Ohio town, the federal government said on Thursday.