(CNN) -- President Barack Obama said Friday that if he sat on the Supreme Court, he would seek to strike down any ban on same-sex marriage.