SPX struck a deal to sell its service-solutions business to German auto-parts maker and engineering firm Robert Bosch for $1.15 billion in cash.