The way to do this properly is by "Positive Action" (when all else is equal, prefer a candidate that fulfils a diversity criteria)... not to be confused with "Positive Discrimination" (the setting of quotas or in your case excluding a demographic from being considered for the role).
You can find an example of this enshrined in UK law https://www.legislation.gov.uk/ukpga/2010/15/part/11/chapter... (I know you're in the US, but I find the UK law very easy to find and to read).
The spirit of it is simple: Interview everyone equally, give all the opportunity... but if you have to choose between 2 candidates who fare equally through interviewing then you may factor in any disadvantages that arise from their sex, gender, race, background, etc... and in those cases you may now favour that candidate.
This process does not exclude people or "lower the bar" for the diverse demographic... it favours only when everything else is equal.