The global economy has been thrown a lifeline with a rescue package for US banks finally being agreed in Washington.