A ceasefire is set to take effect in southwest Syria after a deal was brokered by the US, Russia and Jordan.