It may be delivered as a single programme but its lawfulness rests on the organisation believing that women as a group are disadvantaged and also, separately, that people of "ethnic minority" are also disadvantaged.
So the organisation thought process would go something like:
1 Women are at a disadvantage and we want to do something about that.
2 People of "ethnic minority" are at a disadvantage and we want to do something about that as well.
3 Our actions to help women are a, b & c
4 Our actions to help people of "ethnic minority" are x, y & z
5 Actions a, b & c look a lot like actions x, y & z
6 To save us some money we will provide separate support to women and to people of "ethnic minority" through one programme as the actions both these separate groups require for support are very similar.