State Comptroller Thomas DiNapoli has accused the state Office for Technology of favoring certain companies in purchases that wasted millions of dollars.