RIYADH, Saudi Arabia — As one nation after another has battled uprisings across the Arab world, the one major country spared is also its richest — Saudi Arabia, where a fresh infusion of money has so far bought order.

The kingdom is spending $130 billion to pump up salaries, build housing and finance religious organizations, among other outlays, effectively neutralizing most opposition. King Abdullah began wielding his checkbook right after leaders in Tunisia and Egypt fell, seeking to placate the public and reward a loyal religious establishment. The king’s reserves, swollen by more than $214 billion in oil revenue last year, have insulated the royal family from widespread demands for change even while some discontent simmers.

Saudi Arabia has also relied on its unusually close alliance with the religious establishment that has long helped preserve the power of the royal family. The grand mufti, the highest religious official in the kingdom, rolled out a fatwa saying Islam forbade street protests, and clerics hammered at that message in their Friday sermons.

But the first line of defense in this case was the public aid package. King Abdullah paid an extra two months’ salary to government employees and spent $70 billion alone for 500,000 units of low-income housing. As a reward to the religious establishment, he allocated about $200 million to their organizations, including the religious police. Clerics opposed to democratic changes crowed that they had won a great victory over liberal intellectuals.