ServiceNow agreed to buy cybersecurity company Armis in an all-cash deal worth $7.75 billion—the largest acquisition in ServiceNow’s history.