Michael Bloomberg won an appeal Tuesday to remove himself from a $20 million sexual harassment lawsuit, after a state appellate court in Manhattan said he couldn’t be held liable for misconduct under New York City’s human rights law.

The lawsuit will still continue against his company, Bloomberg L.P., and Nicholas Ferris, a former supervisor at the company who the plaintiff alleged harassed and raped her. Ferris has denied the allegations.