Following unpopular laws is itself a consensus, one where abandoning the rule of law altogether is seen as more harmful than enforcing one unpopular ruling.
How is it a consensus when people on the losing side often respond with violence, riots or protests? Lacking effective means to overthrow the government hardly implies agreement.