A former New York City administrative law judge’s claims against the city’s consumer affairs department, that she was subjected to sexual harassment and retaliated against for complaining about it, will go forward, a state appeals court has ruled.

She will also be allowed to add an alternative First Amendment retaliation claim rooted in allegations that she suffered unfair treatment for publicly raising concerns about agency directors pressuring her and other judges to resolve cases in the agency’s favor, the court decided.