Congress declared war and, despite much Northern opposition, supported the military operations. American forces won repeated victories and occupied Mexico City. Finally, in 1848, Mexico ceded New Mexico and California in return for $15,000,000 and American assumption of the damage claims.