China court rules gay couple cannot marry