Congress passes stopgap bill to avoid government shutdown