In sexual harassment cases, the U.S. Supreme Court (in what’s known as the Faragher/Ellerth cases) over a decade ago laid out the rules for when an employer could use an "affirmative defense" — in Monopoly terms, a "Get Out of Jail" free card.
This defense can be used by employers