The U.S. Department of Justice on Thursday filed a long-anticipated lawsuit against Apple, alleging the tech giant shut out competitors from accessing software and hardware features of its ubiquitous iPhone.