I would note that judges are very often elected officials, and yes, I think getting re-elected and concerns about the way a ruling will play in an election affects the process.
One has only to listen to Fox "news" and tea party blathering about "activist" judges to get the impression there is a good chunk of the electorate that cares more about political litmus tests than legal ones.
As for outright corruption, I would say it happens, yes. If you wish, I can probably find one or two cases at the least. I seem to remember seeing a case in Texas recently.
When I think about elected judges, I am mindful of the small town in East Texas mentioned in this story, and wonder about that area's judges.
http://www.npr.org/blogs/money/2011/...patents-attack