Yankees clinch home wild-card game with record-tying homers