A carbon tax to fund increased border security?

As the old saying goes, politics makes strange bedfellows.  A national carbon tax to fund increased border security fits that description. President Trump's request for these funds is a major sticking point with Democrats in the current budget impasse. However, many of the younger generation of Democrats elected to the House in the midterm election strongly support government action to address the climate challenge. 

Is there a way for all sides to declare victory from this solution? Increased funding for border security would allow the president to fulfill a campaign promise that is extremely important to his base. A carbon tax would allow Democrats to score a major climate policy victory. A significant chunk of the revenues from the carbon tax could go to increase the safety of asylum-seekers and the speed at which their requests are processed. The remaining revenues could contribute to the deficit reduction goals of traditional Republicans. Finally, all three groups could claim credit for a reduced risk of global climate change and a more humanitarian approach to dealing with asylum-seekers.