U.S. Sen. Joni Ernst on Wednesday broke with President Donald Trump’s call to bar transgender Americans from serving in the military, telling the Des Moines Register that anyone qualified should be allowed to serve.

But Ernst, a Republican, a 20-year military veteran and a member of the Senate’s Armed Services Committee, also said the government should not pay for gender reassignment, as it does under an Obama-era policy currently in effect.

“She believes what is most important is making sure service members can meet the physical training standards, and the willingness to defend our freedoms and way of life,” Ernst spokeswoman Brook Hougesen wrote in an email to the Register. “While she believes taxpayers shouldn’t cover the costs associated with a gender reassignment surgery, Americans who are qualified and can meet the standards to serve in the military should be afforded that opportunity.”

That position is at odds with Trump’s announcement on Twitter Wednesday morning that the government would not “accept or allow” transgender people to serve “in any capacity” in the military.

The announcement has yet to be formalized by an executive order or other legal action. It could ultimately turn out thousands of transgender people currently serving in the military and block others from enlisting.

U.S. Sen. Chuck Grassley, meanwhile, declined to take a position on the new policy while offering deference to Ernst’s view as a veteran and member of the Armed Services Committee.

“I have great deference to what the people who run the military have to say about some of these things. And I haven’t studied their view on that,” Grassley said in a call with Iowa reporters on Wednesday. He added a moment later, “I give deference to things that Sen. Ernst would say since she’s been in the military and I never have.”

When told of Ernst’s statement, Grassley reiterated his trust in her views and experience on military issues.

“I have respect for what she has to say and I think I would let it go at that until I’ve looked into it deeper and had conversations with her,” he said. “But I also would have conversations with people at the head of our military as well as besides her.”

U.S. Rep. Steve King, meanwhile, was quoted by the Associated Press saying the order would win praise from Trump’s supporters.

“We don't need to be experimenting with the military,” King said. “Plus there's no reason to take on that kind of financial burden.”