A few things:
migrants, including illegal migrants, are actually fucking great for the economy. Look it up
Mexico wasn't helping migrants cross the border, so Mexico agreeing to stop migrants actually means nothing
Trump using threats to get what he "wants" is a gross violation of proper diplomatic relations between two allies: Mexico and the U.S.
This is not the "win" you think it is. It's actually a HUGE fucking defeat.