WASHINGTON (AP) — President Donald Trump insisted Thursday his reimbursement of a 2016 hush payment to porn actress Stormy Daniels had nothing to do with his election campaign. But the surprise revelation of the president's payment clashed with his past statements, created new legal headaches and stunned many in the West Wing.

White House aides were blindsided when Trump's recently added attorney, Rudy Giuliani, said Wednesday night that the president had repaid Michael Cohen for $130,000 that was given to Daniels to keep her quiet before the 2016 election about her allegations of an affair with Trump. Giuliani's revelation, which seemed to contradict Trump's past statements, came as the president's newly configured outside legal team pursued his defense, apparently with zero coordination with the West Wing.

White House press secretary Sarah Huckabee Sanders said she first learned that Trump had repaid the hush money from Giuliani's interview on Fox News Channel's "Hannity." Staffers' phones began to buzz within moments. Deputy press secretary Hogan Gidley, who had pre-taped an interview with Fox News earlier Wednesday evening, was suddenly summoned to return for a live interview.

While Giuliani said the payment to Daniels was "going to turn out to be perfectly legal," legal experts said the new information raised a number of questions, including whether the money represented repayment of an undisclosed loan or could be seen as reimbursement for a campaign expenditure. Either could be legally problematic.

Giuliani insisted Trump didn't know the specifics of Cohen's arrangement with Daniels until recently, telling "Fox & Friends" on Thursday that the president didn't know all the details until "maybe 10 days ago." Giuliani told The New York Times that Trump had repaid Cohen $35,000 a month "out of his personal family account" after the campaign was over. He said Cohen received $460,000 or $470,000 in all for expenses related to Trump.

But no debt to Cohen was listed on Trump's personal financial disclosure form, which was certified on June 16, 2017. Asked if Trump had filed a fraudulent form, Sanders said: "I don't know."

Giuliani said the payment was not a campaign finance violation, but also acknowledged that Daniels' hushed-up allegations could have affected the campaign, saying: "Imagine if that came out on October 15, 2016, in the middle of the last debate with Hillary Clinton."

Questions remain about just what Trump knew and when.

Daniels, whose legal name is Stephanie Clifford, is seeking to be released from a non-disclosure deal she signed in the days before the 2016 election to keep her from talking about a 2006 sexual encounter she said she had with Trump. She has also filed defamation suits against Cohen and Trump.

Speaking to reporters on Air Force One several weeks ago, Trump said he did not know about the payment or where the money came from. In a phone interview with "Fox and Friends" last week, however, he appeared to muddy the waters, saying that Cohen represented him in the "crazy Stormy Daniels deal."

Sanders said Thursday that Trump "eventually learned" about the payment, but she did not offer details.

For all the controversy Giuliani stirred up, some Trump supporters said it was wise to get the payment acknowledgement out in the open.

Said former New Jersey Governor Chris Christie: "You know, there's an old saying in the law, 'Hang a lantern on your problems.' ... So the fact is that Rudy has to go out there now and clean it up. That's what lawyers get hired to do."

Her attorney, Michael Avenatti, who engaged in his own press tour Thursday, slammed both Trump and Giuliani.

"The admissions by Mr. Giuliani as to Mr. Trump's conduct and the acts of Mr. Cohen are directly contrary to the lies previously told to the American people," he said. "There will ultimately be severe consequences."

Trump is facing mounting legal threats from the Cohen-Daniels situation and the special counsel's investigation of Russian meddling in the election and possible coordination with the Trump campaign.

Cohen is facing a criminal investigation in New York, and FBI agents raided his home and office several weeks ago seeking records about the Daniels nondisclosure agreement. Giuliani has warned Trump that he fears Cohen, the president's longtime personal attorney, will "flip," bending in the face of a potential prison sentence, and he has urged Trump to cut off communications with him, according to a person close to Giuliani.

The president's self-proclaimed legal fixer has been surprised and concerned by Trump's recent stance toward him, according to a Cohen confidant. Cohen was dismayed to hear Trump marginalize his role during an interview last week with "Fox & Friends" and interpreted a recent negative National Enquirer cover story as a warning shot from a publication that has long been cozy with Trump, said the person who was not authorized to talk about private conversations and spoke only on condition of anonymity. Cohen also had not indicated to friends that Trump's legal team was going to contradict his original claim that he was not reimbursed for the payment to Daniels.

Giuliani, a former New York City mayor and U.S. attorney, joined Trump's legal team last month. He told CNN on Thursday that the announcement of Trump's repayment of the hush money was a planned strategy, saying: "You won't see daylight between me and the president." He was quickly backed up by Trump, who said on Twitter that he had repaid Cohen.

Trump himself was happy with Giuliani's performance, according to a person familiar with his views but not authorized to speak about them publicly. And Giuliani told The Washington Post the president was "very pleased."

Jason Miller, who worked on both Trump's and Giuliani's presidential campaigns and remains close with both, said the fact the White House was caught off-guard was by design. He said the outside legal team was supposed to work independently of the White House, modeled on the team that defended President Bill Clinton during the Monica Lewinsky scandal.

"This is not the White House's job. This is not what they're supposed to be worried about," he said. "So it's good that they're not worried about this."

President Donald Trump talks with White House Chief of Staff John Kelly in the Oval Office before the start of a National Day of Prayer event in the Rose Garden of the White House in Washington, Thursday, May 3, 2018. Rudy Giuliani, an attorney for Trump, says the president didn't know the full details of his personal lawyer's arrangement with a porn actress until "maybe 10 days ago." Giuliani, appeared on "Fox and Friends." He says that Michael Cohen was reimbursed for making a $130,000 hush payment to Stormy Daniels in the days before the 2016 election to silence her allegations of a sexual encounter with Trump.(AP Photo/Susan Walsh)

FILE - In this April 16, 2018, file photo, adult film actress Stormy Daniels, left, stands with her lawyer Michael Avenatti as she speaks outside federal court in New York. The story told by President Donald Trump and the White House about payments made to Daniels has evolved over time. The White House has consistently denied Trump had an affair with Daniels, but statements from the president and his aides about a hush money payment made just before the 2016 election have changed. (AP Photo/Mary Altaffer, File)

FILE - In this Nov. 20, 2016 file photo, former New York Mayor Rudy Giuliani arrives at the Trump National Golf Club Bedminster clubhouse in Bedminster, N.J. President Donald Trump's new lawyer Rudy Giuliani said Wednesday, May 2, 2018, the president repaid attorney Michael Cohen for a $130,000 payment to porn star Stormy Daniels. Giuliani made the revelation during an appearance on Fox News Channel's "Hannity." (AP Photo/Carolyn Kaster, File)

In this May 2, 2018, photo, adult film actress Stormy Daniels is escorted into an adult venue called Blush, by a bodyguard as she arrives to perform in her show in downtown Pittsburgh. President Donald Trump's new lawyer Rudy Giuliani said on May 2 that Trump repaid his personal attorney Michael Cohen for a $130,000 payment to Daniels, directly contradicting the president's past statements. (Stephanie Strasburg/Pittsburgh Post-Gazette via AP)

FILE - In this Jan. 12, 2017, file photo, former New York City Mayor Rudy Giuliani talks with reporters in the lobby of Trump Tower in New York. Giuliani's revelation that U.S. President Donald Trump reimbursed his personal attorney for a $130,000 payment to a porn star to keep her quiet about an alleged affair is raising new legal questions, including whether the president and his campaign violated campaign finance laws. Giuliani insisted on Fox News Channel Wednesday night, May 2, 2018, that the payment to adult film actress Stormy Daniels was "going to turn out to be perfectly legal." (AP Photo/Evan Vucci, File)

FILE - In this April 12, 2018 file photo, FOX News personality Sean Hannity attends The Hollywood Reporter's annual 35 Most Powerful People in Media event in New York. Hannity interviewed with Trump legal adviser Rudolph Giuliani Wednesday, who said that Trump had reimbursed lawyer Michael Cohen for paying $130,000 in hush money to adult film star Stormy Daniels so she wouldn't talk about her alleged affair with the president. Trump had previously said he was not aware of the payment. (Photo by Evan Agostini/Invision/AP, File)

WASHINGTON (AP) — America is waiting for special counsel Robert Mueller's report. But anyone looking for a grand narrative on President Donald Trump, Russian election interference and all the juicy details uncovered over the past 22 months could end up disappointed.

DUBUQUE, Iowa (AP) — At a packed eastern Iowa house party, a staffer for Democrat Beto O'Rourke's presidential campaign tried to clear enough space for the candidate to reach the kitchen, where he would need to climb a stepladder to address the crowd.

WASHINGTON (AP) — In a matter of months, Stacey Abrams has gone from losing the Georgia governor's race to being a heavily recruited Democratic star, urged to run for Senate and mentioned as a possible presidential contender.

LIMA, Ohio (AP) — President Donald Trump returned Wednesday to Ohio, the state that foretold his 2016 victory, with a tour of a tank plant, where he touted its revival and told cheering workers "we are rebuilding the American military, we are restoring American manufacturing and we are once again fighting for our great American workers.