Dave Delainey agreed to cooperate with federal prosecutors in exchange for the plea .