The decision is the latest application of a 2022 law aimed at allowing sexual harassment and assault victims to speak publicly about their allegations.