Nearly two centuries after the first American railroads began operating, rail remains central to the country’s future.