President Trump has decided to end the Obama-era “Dreamers” program, but not for another six months — giving Congress the chance to act, a report says.

Sources told Politico that the White House plans to do away with Deferred Action for Childhood Arrivals, also known as DACA, despite facing backlash from both sides of the aisle.

The program will be pulled approximately a half-year from now, allowing for lawmakers to figure out what to do with the estimated 800,000 undocumented immigrants who are benefiting from it.

Under DACA, people who arrived in the country illegally as children — referred to as “Dreamers” — are protected from deportation and ultimately granted work permits.

Many on the right believe the program is unconstitutional, on account of it being carried out unilaterally by former President Barack Obama, rather than through Congress.

Trump had previously pledged to scrap DACA, along with all of Obama’s executive orders on immigration. The former president implemented the program in 2012.

According to Politico, White House officials gathered Sunday to discuss the issue with the president. They later contacted House Speaker Paul Ryan and informed him of Trump’s decision.

The president is expected to make the announcement Tuesday.

Sources said Trump chose to end DACA after speaking with Attorney General Jeff Sessions, who argued that it was Congress’ job — not the president’s — to write immigration law.

White House aides Sunday warned, however, that Trump could wind up changing his mind at the last minute and decide to keep the program after all.

If he sticks to his decision, though, Congress would have a six-month window to act.

Ryan said Friday he thought the president should keep the program, and let lawmakers decide on what should be done with it.

Neither he nor the White House immediately responded to Politico’s requests for comment.

In recent months, several Republican and Democratic lawmakers have called on Congress to pass a law to protect the Dreamers.

“My hope is that as part of this process, we can work on a way to deal with this issue and solve it through legislation, which is the right way to do it and the constitutional way to do it,” Sen. Marco Rubio (R-Fla.) told CNN back in June.