I think the words you are looking for to answer your question is oil and money. We love the Saudis in the UK for example - they buy so much from our arms manufacturers and give priceless jewellery to our royal women ( yes Camilla I’m looking at you)
This is nothing new. The Saudi regime is a complete stranger to human rights, despite their best efforts at international PR. Women who are raped are flogged for adultery. Foreigners are held responsible for most crimes, and there’s no hope of a fair trial. Children have been executed for being implicated in so-called terrorism, when in fact all they did was support an organisation calling for social reform.
Here’s the thing - people claim that Saudi operates Islamic law. That’s not exactly true. They operate a very narrow, biased and nationalistic version of Islamic law - rather in the same way that Nazi Germany was a democracy.