Court rules in favour of woman who says she was passed over for a work promotion because of her heterosexuality.