Obama publicly appoves of same-sex marriages