At least Google's initial rationalization was (paraphrasing) "even though China's censorship sucks, we think we can still benefit people's lives there by censoring the bare minimum possible".  They've always acknowledged that China's censorship is a form of repression, and never emphasized the "we're just following the rules" bit over the actual ethical problem they were dealing with.