The software company’s stock rose 20% in a boost to the sector that has been dragged down over concerns about artificial intelligence.