A revised spending bill was passed just before the midnight deadline.