The South and North both supported this compromise, because both wanted to avoid conflict AND the South wanted to keep the amount of slave states greater than the amount of free states, so they could possibly make slavery a constitutional right.
A very expensive project, even though the Civil War was still going on? He wanted to unite the whole nation via this railroad project. He felt that this will bring unity among the people living in the vast country.