The bill's passage is a victory for the White House, which warned that failure would be a 'betrayal'.