Shutdown of US government averted with temporary spending measure