Congress passes stopgap bill to head off government shutdown