The ruling clears the path for the trial to start August 11 under strict limits on jurors’ exposure to Cardi B’s personal history.