Harvey Weinstein set to appear in court for key rulings before MeToo retrial