Senate passes stop-gap spending bill, preventing a government shutdown