In a policy change, the tech giant will let users of online services such as Outlook.com email know if they’ve become targets of government-sponsored attackers.