Events in Minneapolis nearly caused Democrats to block funding for the Department of Homeland Security, risking a shutdown.