While that is correct, it would be more accurate to say that McCain negotiated a compromise on an immigration bill with Kennedy.
As for 2006, the McCain-Kennedy compromise did not have enough votes for cloture, so the Hagel-Martinez compromise was piled on top of McCain-Kennedy and an additional 10 republicans voted for cloture(40 dems and 23 GOP).
Additionally, AgJobs was the template for McCain-Kennedy and it was negotiated between the growers and the union.
It was done in secret among a small group of senators and they bypassed the committee process and tried to ram it thru with limited discussion and amendments.
As for 2006, the McCain-Kennedy compromise did not have enough votes for cloture, so the Hagel-Martinez compromise was piled on top of McCain-Kennedy and an additional 10 republicans voted for cloture(40 dems and 23 GOP).
S 2611 PASSED with a vote of 62-36. 23 Reps [including McCain] voted with the Dems for the bill. Thankfully, Sensenbrenner was able to squash it so that it didn't come up for a vote in House, which had passed an enforcement only bill [HR 4437] the the WH helped squelch.