This is going to sound strange coming from someone who has been a consistent critic of corporate America, but thank God for Walmart, Apple, the professional sports associations and all the businesses — large and small — that lobbied against the Religious Freedom Restoration Act legislation in Indiana and Arkansas.

Those measures would have led to more discrimination — not less.

Indiana Gov. Mike Pence and Arkansas Gov. Asa Hutchinson beat hasty retreats this week from positions that threatened to isolate them politically and evaporate the reservoirs of goodwill every state needs to attract the best companies to their regions during economically challenging times.

The decisions by two socially conservative governors to back away from support of the ironically titled Religious Freedom Restoration Act was not the result of wrestling with their consciences.

Advertise with us

While conservatives may have believed they had elected two committed pilots for the kamikaze wing of the Republican Party, Mr. Pence and Mr. Hutchinson proved to be steel-eyed pragmatists first and ideological purists a distant second.

Neither governor could see the upside to defying the unusual coalition of business interests, LGBT supporters and ordinary Americans who considered the legislation a transparent attempt to discriminate based on sexual orientation. They capitulated rather than subject their states to another day of national ridicule and political blowback.

Mr. Pence pushed for and got changes to the legislation in Indiana that his critics were satisfied with, while Mr. Hutchinson refused to sign the version sent to him.

For their trouble, both governors have been condemned by their most conservative colleagues, who accuse them of capitulating to the “radical homosexual lobby.” Those inclined to believe the most apocalyptic scenarios warn that a moral disaster has befallen America thanks to the moral cowardice of two governors.

Among the likely Republican primary presidential candidates, former Florida Gov. Jeb Bush is already moderating his once full-throated support of Mr. Pence’s decision to sign the original legislation last week. He now insists that a more “consensus-oriented” approach is preferred in these cases, whatever that means.

Advertise with us

But Sen. Ted Cruz sees the repudiation of bigotry as an opportunity to appeal to a suddenly defensive conservative religious community’s worst instincts. In his quest to create a grassroots advantage in Iowa in 2016, the opportunistic Mr. Cruz is willing to castigate conservatives like Mr. Pence and Mr. Hutchinson for compromising with secularists, liberals and business interests that refuse to buy into the lie that the Religious Freedom Restoration Act doesn’t discriminate.

Thanks to the media spectacle surrounding the voluntary closing of Memories Pizza in Indiana this week, some conservatives are already predicting a grim but fabulously coordinated future in which Bible-believing florists, bakers, pizza makers and even ministers will be compelled by law to participate in gay weddings that they oppose on moral and theological grounds.

It is a ridiculous fear rooted in the same paranoia that characterized religious resistance to racial integration and interracial marriage half a century ago. The Religious Freedom Restoration Act, in its own way, is an attempt to relitigate the fight over civil rights lost by the social conservatives who controlled the Democratic Party throughout the American South.

But like the civil rights movement, the fight in recent weeks shows the value of coalition building between unlikely but effective allies. Imagine how different our political landscape would be today if the same coalition of social, political and business interests had come together to stop Republican-controlled legislatures from shutting down Planned Parenthood facilities or curtailing voting rights.

Imagine what would have happened if businesses had threatened to boycott states where reasonable gun control laws died in committee, or where health care and immigration reform were snuffed out by ideologically driven politicians. What would our politics look like if the same collective voice of outrage we heard this week had been applied to one of those other issues?

What happened in Indiana and Arkansas this week is what a well-functioning democracy is all about: coalitions of people — and corporations — coming together to express collective outrage to stop bad legislation in its tracks. We need more of this.