Sale of Philadelphia Refinery Nears; Foes Vow Long Legal Fight