US President Barack Obama hailed the Supreme Court ruling in favor of gay marriage Friday, saying it shows social changes once thought impossible can become reality.