Barack Obama actually said...
We judge individuals and parties that are elected in a democratic process by their actions, not by their religious affiliations.
Context
Press Gaggle by Press Secretary Jay Carney
06/24/2012