New York’s highest court overturned a conviction on Thursday that tested how #MeToo cases could be tried.