Rep. Alexandria Ocasio-Cortez and Sen. Ted Cruz vowed on Twitter to work together on legislation banning members of Congress who leave office from lobbying.