US Senate passes $1.7 trillion spending bill to avert government shutdown