WASHINGTON — President Trump appeared poised on Tuesday to end two months of scorched-earth confrontation without the money he demanded for a border wall as Republicans pressured him to accept a bipartisan spending deal rather than close the government again on Friday.

Mr. Trump pronounced himself unsatisfied with the agreement brokered by House and Senate negotiators, and he refused to publicly commit to signing it. But he all but ruled out another government shutdown and emphasized that he would find “other methods” to finance a border barrier, leading aides and allies to predict he would grudgingly go along with the deal.

“Am I happy at first glance?” the president said, speaking with reporters at the beginning of a cabinet meeting. “I just got to see it. The answer is no, I’m not. I’m not happy.”

But he said he was “moving things around” in the budget from “far less important areas” to finance a wall even without explicit congressional approval, and he expressed no desire to repeat the standoff that shuttered many federal agencies for 35 days. “I don’t think you’re going to see a shutdown,” he said.