Yahoo, the giant Web company that agreed on Sunday to buy Tumblr for $1.1 billion, is moving its New York headquarters to the former home of The New York Times, on 43rd Street, east of Eighth Avenue, where it plans to expand. Yahoo is talking to city officials about erecting a large illuminated sign with its name on the cupola at the top of the building, where The Times once had its own sign.