Microsoft’s profit dropped and its revenue was almost flat in its third fiscal quarter, during which the company replaced Steve Ballmer with Satya Nadella as CEO.