After months of overt hostility, followed by mediation, The New York Times newspaper guild ratifies new 3-year contract