The premise of a robot, such as VIKI, putting the needs of humankind as a whole over that of individual humans can be found in "The Evitable Conflict" where supercomputers managing the global economy generalize the first law to refer to humankind as a whole.