The Senate’s final vote marks the culmination of more than a generation of polarization of the political system.