Beirut protests end with 3-day deadline for government