The Justice Department has appointed Bill Essayli, the top federal prosecutor in Los Angeles, to oversee a focused investigation into the legality of the Mar-a-Lago search conducted four years ago, according to sources familiar with the matter. The search of former President Donald Trump’s Florida residence and private club was a pivotal event leading up to the indictment brought by special counsel Jack Smith, who charged Trump with mishandling classified documents and obstructing government efforts to recover them.

This appointment marks a significant development in the broader “grand conspiracy” investigation, which has been scrutinizing Obama-era officials and others involved in probing Trump. The inquiry initially sought to establish that various investigations into Trump over the past decade formed part of a coordinated effort to damage his political prospects. However, after months of challenges, including personnel changes and strategic recalibrations, prosecutors appear to be narrowing their focus toward more discrete aspects of the case, such as the Mar-a-Lago search itself.

By taking on this investigation, Mr. Essayli is in a unique position. Recently, a federal judge ruled that he has been serving in his Los Angeles post beyond the legal 120-day limit for acting U.S. attorneys. The Justice Department plans to appeal that ruling, and an official stated that Essayli will continue his work in Los Angeles alongside his new responsibilities related to the Mar-a-Lago inquiry.

In recent weeks, investigators have sought testimony from a group of former FBI agents who participated in the search. Many of these agents were dismissed in connection with the classified documents case and were subpoenaed this summer to appear before a grand jury in Federal District Court in Fort Pierce, Florida. The theory behind this subpoena is that these agents might provide evidence suggesting the search was improperly conducted.

Defense attorneys representing the former agents have argued that if compelled to testify, their clients would confirm the search was lawful and properly executed. They have also pointed out a procedural obstacle: Judge Aileen M. Cannon, who presided over the classified documents case, has prohibited special counsel Smith and his team from publicly discussing details contained in a post-investigation report. The attorneys have petitioned Judge Cannon to clarify whether the agents can testify without breaching this order, but no decision has been issued.

The grand conspiracy probe began late last year, initially targeting a wide group of officials, including former CIA Director John O. Brennan and former FBI Director James B. Comey, both of whom played key roles in investigations related to Trump’s 2016 campaign. However, prosecutors faced significant challenges. Evidence linking these officials and special counsel Smith in a coordinated conspiracy remained elusive, and legal hurdles complicated efforts to unify events spanning different jurisdictions and timeframes.

An earlier prosecutor who examined allegations against Brennan was removed after determining an indictment was unlikely. Joseph diGenova, a known Trump loyalist, was later brought in with promises to advance the case swiftly. More recently, Jason A. Redling Quiñones, U.S. attorney for the Southern District of Florida and nominal head of the investigation, resigned amid dissatisfaction with the inquiry’s progress following the midterm elections.

Despite its initial scope, the Justice Department has signaled a shift away from pursuing a sweeping conspiracy theory. Prosecutors involved in the grand conspiracy investigation played a notable role last month in filing charges against Comey in Washington, accusing him of mishandling classified information published in a major newspaper.

The evolving focus of the investigation reflects ongoing challenges in linking disparate events and figures into a coherent legal case, prompting authorities to concentrate on narrower allegations involving specific individuals and actions.