The sentencing was a disappointing one for F.B.I. officials, who believed that Attorney General Eric H. Holder Jr. had given Mr. Petraeus preferential treatment by allowing him to plead guilty to a misdemeanor and recommending that he receive probation instead of prison time. Federal judges are not bound by such recommendations, but they almost always follow them.