US Senate approves spending bill to keep gov't open