Microsoft has reached an agreement with former Windows chief Steven Sinofsky — ousted from the company last November — that will award him stock worth more than $14 million, according to an SEC filing.