House Speaker Nancy Pelosi signs funding bill to keep government open