An eleventh-hour deal has been struck that could prevent Suncor Energy's Terra Nova oilfield offshore Newfoundland