Agreement reached on $2 trillion rescue bill