Court halts Calif. gay marriages pending appeal