Barack Obama actually said...
How religious institutions define and consecrate marriage has always been up to those institutions.
Context
Statement on the United States Supreme Court Ruling on the Defense of Marriage Act
06/25/2013