It happened three weeks after the derailment of an Amtrak train at Penn Station and a week after a New Jersey Transit derailment shut down eight of 21 tracks there and disrupted travel in the region for days.