Donald trump has given his blessing to oracles partnership with bytedance to operate tiktok, but his claim that the companies would finance a $5bn patriotic education fund has raised questions about the deal to allow the app to operate in the us.

The president said he had given preliminary approval for the deal that oracle and bytedance, the chinese owner of the short-video app, proposed to alleviate concerns about protecting us national security.

But in a new twist in the more than week-long negotiations between the companies and his administration, mr trump said his team was talking to them about funding a venture that would teach american children about the real history of our country.

We have a deal worked out, mr trump told supporters in north carolina on saturday. they are going to pay $5bn into a fund for education so we can educate people as to the real history of our country. we are getting very close to that deal.

However, bytedance said in a statement on sunday that it had first heard about the $5bn education fund from media reports.

The move was a last minute decision to allow mr trump to claim he had won a victory by backing a deal that some critics say would allow china too much influence over tiktok, according to one person with direct knowledge of the matter.

Bytedance, oracle and walmart, which is part of the tiktok deal, agreed to create an initiative after mr trump made the last-minute request. but they have had no discussions about a $5bn commitment or any other amount, according to people familiar with the situation.

Bytedance and its new partners will not create an education programme that seeks to teach american history in a manner that is tailored to any specific bias, said two people with direct knowledge of the matter.

On saturday, oracle said it and the other tiktok investors would create an educational initiative to develop and deliver an ai-driven online video curriculum to teach children from inner cities to the suburbs, adding that the courses would range from basic reading and math to science, history and computer engineering.

The lack of certainty raises questions about the timing of any final approval for the deal. the commerce department on friday told apple and google to remove tiktok from their app stores from sunday. it later extended the deadline by one week to give the companies time to work out the final details with the administration and pave the way for the order to remove the apps to be reversed.

In his remarks in north carolina, mr trump did not provide any detail about the $5bn fund. but last week he said he would create a patriotic education initiative named the 1776 commission, in a reference to the year that the us declared independence.

The move appeared to be a response to the new york times, which published its 1619 project to trace the history of the us from the arrival of slaves. some conservatives have railed against the project, which has become part of a broad debate about race after the death of george floyd, and a series of cases where black men have been subject to police brutality by white police officers.

Mr trump has the power to approve or reject the deal on national security grounds. but it remained unclear under what legal authority he could urge the companies to fund the initiative. it was also unclear what mechanism would be used to create such a fund. the white house refused to comment and treasury did not respond.

Last month, when microsoft was negotiating with bytedance over tiktok, mr trump claimed that the companies would have to provide a payment to treasury in order to win his approval. that demand stunned lawyers inside and outside government, and eventually his own legal team told him that such a payment would not be lawful.

Amazingly, i find that youre not allowed to do foolish can we be? mr trump said earlier this week.

Oracle said tiktok would pay more than $5bn to the treasury in new taxes, although much of that will depend on the profitability of the social media group. bytedance, which in addition to tiktok also runs very popular apps in china, reported $3bn of net profit in 2019.

Additional reporting by kiran stacey in washington

Follow demetri sevastopulo and james fontanella-khan on twitter