The $5.15 billion deal centers on AI-powered expense management and automation tools used by thousands of companies.