Appeals court rejects California's Proposition 8