Appeals court stays ruling on weddings in NY