The course of action they followed implicitly supports human rights violations, in order to continue operating within a given country. Note that I am not saying the action itself is a human rights violation. They certainly have the right to choose what to publish and they are limiting the scope of their actions to the laws of the country question. The decision is entirely reasonable if the context of those laws is ignored. The decision is also entirely reasonable when you consider that Apple and Google are large enough entities that not operating within that country or doing so in violation of their laws could rightfully be considered as exerting political pressure.
I doubt that there is actually a good answer to the question. There is only a lesser-of-evils answer, where they probably made the right choice even though I find their profiting from that choice disgusting.