SAN JOSE — A major regional transit agency is in negotiations to buy a downtown San Jose office tower for its future headquarters in a deal that could provide a big boost for the city’s urban heart.