WASHINGTON — As President Donald Trump rails against an influx of migrants at the border, two of his most influential White House power players are at odds over the future of his immigration policy.

Fresh off orchestrating a shake-up at the Department of Homeland Security, an ascendant Stephen Miller is making a renewed push to impose tougher policies at the border. That’s setting up a face-off with senior adviser and presidential son-in-law Jared Kushner, who has been quietly working on his own immigration reform package for months.

Their divergent approaches to the president’s signature campaign issue speak to more than the ideological gulf between the two men: They echo a long-standing philosophical divide within the West Wing over how to best position the president ahead of his re-election campaign.

Miller, the mastermind of the president’s Muslim travel ban and other hard-line immigration policies, has long been the combative ideologue, urging Trump to take ever-more-drastic action to staunch the border flow. Kushner, whose faith in his own careful deal-making power rivals Miller’s zeal, has spent months meeting with lawmakers and interests groups, trying to put together a package of legal immigration and border security changes that Republicans can rally around heading into the 2020 presidential election.

The resulting parallel tracks — one bent on implementing ever-stricter policies and another meant to forge a more palatable and unifying legislative package — have created uncertainty and confusion both inside the administration and on Capitol Hill about where Trump is headed.

The conflict came into focus during a recent White House meeting when Trump effectively knighted Miller, saying the aide would be in charge of immigration going forward. But Kushner had already been tasked by the president with coming up with a legal immigration plan, which Trump was briefed on this week.

“We’ll talk to you about it soon,” Trump said Wednesday of Kushner’s plan, labeling it “very exciting, very important for the country.”

Despite the aides’ differing approaches, administration officials insist there is no personal ill will between Kushner and Miller, who have worked together over the years at the White House and on Trump’s campaign. The two are among the last remaining members of Trump’s tightknit 2016 team to still work at the White House, and have been longtime collaborators, co-writing speeches, including the president’s convention address.

But for all of that, the two hold fundamentally different views on immigration and notions on how Trump ought to govern.

Miller sees illegal and legal immigration as existential threats to national security and the American worker, and views Trump as a generational voice willing to make dramatic changes. Kushner, a former Democratic-leaning real estate developer, sees a broken immigration system as another intractable Washington problem that could be solved with the right deal.

That leaves them working at cross purposes at times.

After Trump threatened to shut down the southern border two weeks ago, Kushner was among those whom Homeland Security officials worked with to get the president to back off. Indeed, Kushner is seen within the department as someone who accepts the realities of legal limitations and can be trusted to calm Trump down, not spin him up, as they feel Miller tends to do on immigration, according to three administration officials. They spoke on condition of anonymity because they were not authorized to publicly discuss internal deliberations.

Trump on Wednesday challenged the notion that anyone was running his immigration policy other than him.

Asked whether he had considered tapping Miller to lead Homeland Security, Trump told reporters: “Stephen is an excellent guy. He’s wonderful person.” But, he added, “Frankly, there’s only one person that’s running it. You know who that is? It’s me.”

But former officials said the absence of clear lines of authority and the recent purge of senior leadership at Homeland Security could create confusion, leaving the agency to implement whichever viewpoint wins the day.

Raising the stakes further is that Kushner is no mere White House aide — he’s the president’s son-in-law and has proven capable of forcing staff turnover at the highest level.

Kushner’s latest efforts on immigration date to early January, when Trump asked him to pursue a deal with lawmakers that would win the president more money for his border wall during the government shutdown.