The governments that forced these changes in the first place are of course acting immorally, that's not in dispute.
Hyperbolic example: If your boss tells you to kill the next customer or you won’t get paid, doing the killing isn’t amoral.
I guess it just feels like a lot to me to expect a company to break the law on purpose, even in the service of a greater moral duty. But maybe it shouldn't. Obviously if they did pull out of the UAE and Saudi Arabia over this rather than comply that would be a laudable stand.
It’s not as bas as the time they helped organise a genocide though, so there is that.