Judge rules prior investigations into Mosby can't be used in trial