Newspaper Guild approves New York Times contract, ending months of bumpy negotiations