Safeway, King Soopers workers agree to new contract