United Auto Workers ratify GM contract, ending 40-day strike: Report