The Department of Energy awarded I.B.M. a contract to build a supercomputer using chips designed for the coming PlayStation 3.