Senate Majority Leader Chuck Schumer applauded lawmakers’ willingness to work together and leave aside controversial issues that threatened to derail the effort.