He got along well with the Democratic-controlled Legislature in Massachusetts , and he held a series of civilized , widely praised debates in 1996 in his race against Senator John Kerry , who defeated Mr. Weld .