A lawsuit filed Wednesday in federal court alleges negligence by CSX Transportation caused a train derailment and ensuing chemical fire that forced residents of a small Kentucky town out of their homes for more than a day, including most of Thanksgiving.