Safeway’s $9 Billion Deal Is Bet Chain Can Ward Off Foes