The Wilmot Proviso transformed the politics of the Mexican War by