Judge upholds charges, could put Weinstein away for life