Microsoft reported a smaller quarterly profit than Apple for the first time in 20 years as the iPad ate into sales of laptop computers. Microsof…