Appeals court temporarily stays same-sex marriage ruling