A now-viral investing app is being used to track and replicate the portfolios of Congress’s top moneymakers, including former House Speaker Nancy Pelosi.