The Justice Department searched two locations associated with the conservative group Project Veritas as part of an investigation into how a diary stolen from President Biden’s daughter, Ashley, came to be publicly disclosed a week and a half before the 2020 presidential election, according to people briefed on the matter.