Bipartisan senators blocked a major spending package as last-minute negotiations continue to avert a partial government shutdown by the week’s end.