UAW reaches deal with General Motors that ends strikes against Detroit automakers pending votes