Congress has walked up to the edge of a shutdown numerous times in recent years, but prolonged closures are rare.