Ira Berlin, a historian who sifted through millions of documents to revive the voices of ordinary African Americans from the struggle for emancipation, and who helped demonstrate that slavery was a complex, ever-evolving institution at the core of American history, died June 5 at a hospital in Washington. He was 77.