Talk of withdrawal was probably a negotiating tactic, to get the Saudis to pay the bill - so Trump can use the money that is freed up to build wall in Texas.
Saudis will be more open with their wallets to buy US products of war.