The UAE had long been forced by the British and the Americans to abolish slavery before they gained their independence. This, unlike Saudi Arabia, where it was legal long after the 1970s.
About the "slave" jobs, most of them are basically menial jobs with really shit pay and a combined bunk accommodation. But it's far better than what we get back in India or Pakistan or Bangladesh, which is usually the unemployment line. A number of people have improved their station and are part of the local business community from those levels.
A company taking a person’s passport is explicitly illegal in the UAE: https://dubaihow.com/holding-passport-employee-uae/
It carries a criminal prison sentence and a fine. And there’s a big push by the UAE government to go after, and prosecute employers who break this law.
I don’t know why people in Western countries, always without fail, mention this whenever the UAE comes up.
Imagine every time the US was mentioned, a person always pointed out how some private companies in the US treated their employees poorly and abusively (which I’m sure happens). It would be absurd.
In Israel we have a lot of love for the UAE. Together, we're already sharing agra-tech, water-tech, and finance. Israel is looking forward to learning about some of the construction methods being pioneered in building up the desert. This is an unbelievably warm peace.