President Trump’s announcement on Twitter that he was banning transgender people from serving in the military seemed spontaneous and, according to some media outlets, caught some administration officials and congressional leaders by surprise.

But evangelical Christian leaders who informally advise the president discussed reversing the year-old policy at the White House two weeks ago, according to a tweet by David Brody of CBN (Christian Broadcasting Network) News.

A number of those leaders, including some who had been on Trump’s evangelical advisory board during the campaign, attended a daylong meeting at the Eisenhower Executive Office Building next to the White House on July 10. Photos shared widely on Twitter showed them laying hands on the president in prayer afterward in the Oval Office.

RELATED: Nun ministering to transgender women gets thumbs-up from Pope

Those in attendance did not reveal what they had discussed at the meeting or with the president, except to say the unfolding Russia investigation was not a topic. It was not clear from Brody’s tweet if this is the meeting he was referring to.

Brody also tweeted that Trump’s evangelical advisers had sent the president a letter this week asking him to reverse the policy on transgender people serving in the military.

And he added his praise for the president’s decision, tweeting, “The transgender announcement by @POTUS is more proof that @realDonaldTrump has become a dream come true for conservative evangelicals.”

The Trump White House continually has turned a spotlight on the Christian Broadcasting Network, with press secretary Sean Spicer appearing on its new online show, “Faith Nation,” last week (just days before he resigned) and the president himself sitting down to an interview with “The 700 Club” host Pat Robertson earlier this month.

RELATED: Parolin says ‘time is needed’ to judge Trump, pushes U.S. on climate change

The announcement of the ban on Wednesday (July 26) drew both cheers and condemnation from leaders of all faiths.

The New York Times and other outlets reported it came in response to a fight on Capitol Hill over whether taxpayer money should pay for gender transition and hormone therapy for transgender people in the military.