You'll find a great many people on this very forum arguing that a given law is bad because it's bad for the market, dismissing the question of whether that market is actually producing good outcomes for humans as beneath consideration. So in practice a lot of people do elevate the market over more human values, and that influences the political process and the law.
Not to mention, economic factors are stronger than political or social factors. The market economy is winning for basic evolutionary reasons: those who engage in it are able to outcompete those who don't, whether it's at the "marketplace of ideas" or in the field of battle. And it doesn't even matter if, at individual level, the pro-market society is worse off. Much like with hunter-gathering vs. agriculture - the former lifestyle may be better for you, but if your group doesn't adopt the latter, it'll eventually be conquered by a group that does.
In the end, people end up elevating the market above all, whether they want it or not, because they underestimate the power of the system they're dealing with.