ServiceNow shares gained ground as an earnings beat and a booming AI pipeline offered welcome relief to software investors.