First female president of Supreme Court raises concerns over ‘very binary reaction’ to ruling legal definition of woman is based on biological sex