US Congress averts government shutdown, passing stopgap bill