Rafael pulled Ribery, and earnt a second yellow card. He didn't impede him much, but he did pull him. He was on a yellow card, and should have known better, but he did it anyway, got sent off, and we went on to lose the game.
So no, he didn't "nullify" Ribery, because in the act of trying to mark him, he got himself sent off for two yellow cards. It's not a big deal -- he was a "work in progress", after all -- but let's not re-write history to suggest Rafael was flawless in that game and then the innocent victim of malicious refereeing. If Rafael hadn't fouled Ribery, he wouldn't have got the second yellow. But he did.