The legislation prompted a fierce debate between the moderate and progressive wings of the Democratic Party.