Global markets bounce as US agrees deal to stop a fresh government shutdown