Apple agrees to $25 million settlement with US over hiring of immigrants