Microsoft Corp. easily topped earnings and sales expectations with a Tuesday report, as all three of its core segments grew strongly amid demand for cloud services and videogames during the COVID-19 pandemic, but its forecast did not live up to estimates.