New bipartisan legislation, first seen by CNBC, would prevent U.S. lawmakers from lobbying after they leave office.