Congress has approved a stopgap spending bill, so the government can maintain operations until after midterms.