Congress averts shutdown by passing funding bill