Which agreement resulted from the informal Compromise of 1877 between southern Democrats and northern Republicans?

Southern states accepted federal tariffs in exchange for new railroad construction and investments in southern industries.

Southern plantation owners would receive compensation for freed enslaved people in exchange for agreeing to loyalty oaths swearing allegiance to the Union.

Northern Republicans would end Reconstruction and the occupation of southern cities in exchange for the ratification of the Fourteenth Amendment by southern states.

Due to a contested election, Republican Rutherford B. Hayes would be chosen president by Congress in exchange for federal troops being removed from southern states to end Reconstruction.