Damaged commuter rail snarls traffic into New York