Simple solution:
Set a quota. Evaluate all candidates in rank order. If there aren't enough females, bump one up, displacing a more-qualified male. Done.
Could that mean we get less-than-optimum research results from the funding? Of course.  But that's not what is important.