Democrats in New York introduced legislation Thursday to expand sexual harassment protections for government workers by attempting to curb a defense sometimes used by the state to have those claims thrown out in court.

Lawmakers want to do away with a tactic used by the state to claim that sexual harassment claims can only be brought against an employee’s direct supervisor, rather than the state itself.