Weinstein’s sentencing Wednesday for sexually assaulting one-time TV production assistant Miriam Haley followed a legal odyssey spanning more than six years