The pandemic-era health policy that allowed officials to quickly expel most migrants at the border without allowing asylum is expected to end just before midnight.