Judge grants lesbian couple right to joint maternal custody