The primary effects of the American victory in the War with Mexico largely centered around territorial expansion. Therefore, the correct answer is:
B the acquisition of California and New Mexico.
This victory significantly expanded the United States territory, facilitating westward expansion and contributing to the idea of Manifest Destiny.