Microsoft showed investors that it’s able to grow rapidly while keeping spending in check.