Pandemic bill to pass after 21-hour debate