The US’ often neglected railways might be on track for better days as the country pumps billions of dollars into outdated infrastructure.