The judge’s ruling on Thursday came during the final hearing ahead of the trial, scheduled to start next week.