A New Jersey commuter train crashed into a busy railroad terminal Thursday morning, killing one person, the latest in a series of fatal passenger train accidents around the country.

Mass transit is enjoying a resurgence in many U.S. cities. But the accidents highlight that financially strapped passenger railroads are struggling to quickly install the latest safety technologies, and in some cases have prioritized keeping trains moving over using fail-safe systems they already have.

Four...