Also to note, in California, I don't think a workplace can actually outright ban relationships, even between supervisors and employees.
But Those laws could have changed.
It has to do with the right to "freedom of association"
But again, if an employee feels pressured, and they sue for harrassment, they do have grounds.