United Autoworkers ratify new GM contract; strike ends on day 40