The U.S. Justice Department on Tuesday reached a settlement with Microsoft to resolve allegations that the tech giant discriminated against non-U.S. citizens in its hiring process.