Eventually congress intervened and forced the railroads to use automatic couplers. In the early 1990s, government intervened again, passing worker's compensation laws.
Previously, injured workers or bereaved relatives had to sue to receive compensation, and seldom won. New laws said that injured workers would *automatically* receive compensation from the companies that injured them.
Companies suddenly had an incentive to prevent injuries and deaths, and workplace accidents plummeted.