The Senate worked into the night to pass it, 85-11, just past the midnight deadline.