US Senate vote averts government shutdown