A ray of hope is emerging in the D.C. immigration battles.

First, the Arizona Republic newspaper says the so-called "Gang of Six" senators led by Arizona Republican Jeff Flake have made a new immigration deal offer that includes eliminating the Diversity Visa Lottery program and allocating $18 billion in additional border security with an immediate $1.6 billion in funding for the new border wall.

That's closer to a deal President Donald Trump could and should sign.

The second ray of hope comes from an unexpected source. The usually 100 percent anti-amnesty NumbersUSA organization now says it will support giving the "Dreamer" children of illegal immigrant legal status as part of a plan that makes E-Verify mandatory for all U.S. employers.

E-Verify is the federal database that allows employers to check and confirm the status of potential employees. It's also the one thing that would make winners of not just the "Dreamers," but Democrats, congressional Republicans, and the White House too.

Here's how:

First off, the American people support the idea. An ABC News Washington Post poll showed that 79 percent of respondents support requiring employers to verify immigration status. But as of now, the Society for Human Resource Management says fewer than 10 percent of U.S. employers are using the E-Verify system. So, this is something where a noticeable difference can be made in a hurry.

Dreamers will win with E-Verify because it will provide the most economically tangible benefit of their hard-won legal status.

Republicans win with E-Verify as it gives them cover for approving amnesty for the Dreamers with the hard right base. If NumbersUSA is okay with it, it's not likely any significant numbers of GOP voters will object.

Avoiding any pushback for helping the Dreamers is a big plus for the Republicans as they need to heed poll after poll that shows strong support for those children and young adults. The added plus for the GOP is that pushing for E-Verify will prove they're not the slaves of their service industry corporate donors. Left-leaning critics have long criticized the GOP for allegedly helping big business use illegal immigration to keep wages low.

Of course, the harder case to make is proving that backing E-Verify is a good move for the Democrats. Here are two key reasons it is.

First, it would be one of the first things Democrats have done to show they're actually learning a valuable lesson from the 2016 election results. The fact is, a crucial part of their voting base likely supports E-Verify and all the ideas behind it. Rank-and-file union members have long suspected that illegal immigrants hurt their wages and employment prospects.

That suspicion is a key reason why Trump did so well among those rank-and-file union voters in 2016. Union leadership may not officially support E-Verify, but even AFL-CIO chief Richard Trumka praised President Trump last year for mentioning the effect illegal immigration has on wages.

If the Democrats want to win back those union voters, supporting E-Verify is a great way to do it. The party can continue to waste time trying to blame Hillary Clinton's loss on Russian collusion, but they lost to Trump in 2016 mostly because they failed to win blue collar union states such as Michigan, Pennsylvania, and Wisconsin. Backing E-Verify is a way to get them back.

Second, the Democrats also have polls to worry about that make supporting E-Verify a good move. It's true most voters support the Dreamers and generally don't like the idea of mass deportations, but it's also true that voters support the rule of law. A recent survey that shows that 80 percent of voters oppose the idea of sanctuary cities proves that point. Democrats ignore that sentiment to their great peril.

Most importantly, E-Verify gives us the lowest cost tool to reduce illegal border crossings in the first place. That's because the lure of potential jobs is just as much of an incentive to cross the border as lax security.

We learned that when illegal immigration fell off significantly in the Great Recession years of 2007 to 2009. By contrast, the noticeable uptick in the U.S. economy this year has actually encouraged a spike in illegal southern border crossing that began this summer and is continuing even now.

We can keep spending billions on new border walls, ICE raids, and detention centers. Or we can implement a popular program like E-Verify and get the same results at a small fraction of the cost.

It's not often that a far-right or far-left group adds any real hope to a policy debate in Washington. But the push for E-Verify is a win/win/win for the left, right, and everyone in between.

Commentary by Jake Novak, CNBC.com senior columnist. Follow him on Twitter @jakejakeny.

For more insight from CNBC contributors, follow @CNBCopinion on Twitter.