The deal is the largest in franchise history and the first major signing under new boss Buster Posey