Obama wants court to overturn gay marriage ban