The chance of a partial government shutdown by week’s end is growing, as the fate of funding for the Department of Homeland Security and other key government agencies hangs in the balance.