Lanette Holmes had grown accustomed to waiting for her husband, Shabaka Shakur. He had spent the past 27 years in prison for a murder he insisted he did not commit, based largely on a confession that a judge ruled last week bore a “reasonable probability” of having been fabricated by a detective now accused of using rogue tactics to make his cases.

Her wait ended early Monday, after a judge ordered a new trial for Mr. Shakur, and the Brooklyn district attorney’s office moved to dismiss the indictment against him.

Although the judge last Thursday ordered that Mr. Shakur be released, a clerical blunder delayed his freedom and kept him in the Shawagunk Correctional Facility over the weekend. “I wanted to climb over that gate to get him,” Ms. Holmes said. However belated and simple, the meal of roast turkey and French fries that the couple shared at the Alexis Diner in Newburgh for lunch on Monday was a celebration of the life Mr. Shakur had imagined every day he spent behind bars.

In 1989, a jury found Mr. Shakur guilty of a double homicide based on evidence amassed by a now retired detective, Louis Scarcella, whose credibility and investigative methodology were called into question in a 2013 examination by The New York Times.