The US says millions of lives will be saved after it pledged billions of dollars to the UN's humanitarian efforts.