US stocks have opened higher as advances in Meta and Tesla offset a slump in Microsoft.