The largest category of victims in the vast Ponzi scheme run by Bernard L. Madoff — those who lost cash through accounts with various middleman funds — will be first in line for compensation from a $2.35 billion fund collected by the Justice Department.