The legislation represents the culmination of a widely-bipartisan effort at a time when Washington, D.C. is bitterly polarized.