The Supreme Court has ruled that the legal definition of a woman is based on biological sex, in a decision which could have far-reaching implications for who can access single-sex services and spaces.