Meta’s strong quarter stops concerns that its aggressive AI spending is misguided