The legislation sets up a clash that will pit the political center of the Senate against the president and the Republican congressional leadership.