US: Senate approves spending bill, averting shutdown