US Senate passes Republican spending bill to avert government shutdown