Red Sox stave off sweep at Yankee Stadium