The software giant said it detected a campaign linked to the Iranian government attempted to breach email addresses belonging to a U.S. presidential campaign, government officials and journalists.