The Treaty of Guadalupe Hidalgo, approved by the U.S. Senate in March, was ratified by the Mexican Congress, ending the war with Mexico.