The two railroad companies that were given charters to build the first transcontinental railroad