US Senate approves spending stopgap to avert government shutdown