Mr. Trump is expected to speak at the signing of H.R. 515, the "John S. McCain National Defense Authorization Act for Fiscal Year 2019", at Fort Drum Army Base in NY.
Congress wanted to honor the ailing Sen.
It also authorises a 2.6 percent pay raise for troops, the largest in almost a decade, as well as boost the size of the Navy and the ranks of the military by 15,600 active-duty troops.
Trump was greeted when he arrived at Fort Drum by Vice President Mike Pence, who arrived at the Army post about 30 minutes before the president.
The bill will introduce thousands of new recruits to active duty, reserve and National Guard units and replace ageing tanks, planes, ships and helicopters with more advanced and lethal technology, Trump said.
Yes, we're sure Cadet Bone-Spurs is a bigly part of the military spending calculations.
The National Defense Authorization Act for 2019 gives troops their largest pay increase in almost a decade and starts laying the groundwork for the president's proposed Space Force.
It fulfils several of the administration's priorities to bulk up the military, including adding 15,600 troops across the Army, Navy, Air Force and Marine Corps.
The NDAA allows $7.6 billion for 77 of Lockheed Martin LMT 's F-35 Joint Strike Fighters.
The United States has suspended the sale of F-35 stealth fighter jets to Turkey, stoking fears that bilateral ties could sour further. This includes three Arleigh Burke-class destroyers and two Virginia-class submarines.
On Monday, Trump shrugged off global trade law by approving a defense budget law delaying the delivery of F-35 jets to Turkey. It also funds development of artificial intelligence capabilities.
"After years of devastating cuts, we're now rebuilding our military like never before", Mr. Trump said.
"America is a peaceful nation but if conflict is forced upon us, we will fight and we will win", Trump said. "They want to jam transmissions, which threaten our battlefield operations and so many other things". And very, very far distant in this case.
He said the Chinese military has launched a new military division to oversee its warfighting programs in space.
McCain's condition - dire enough that a recent HBO documentary on him was titled "John McCain: For whom the bell tolls" - has not stopped Trump from deriding the Arizona senator at political rallies.
"This legislation reforms the Pentagon to make our military more agile, provides resources to ensure our armed forces have the tools needed for modern warfare, and extends funding for global counterterrorism efforts", said the Wisconsin Republican.
"We would not be here for today's signing ceremony without the dedicated efforts without the dedicated members of Congress who worked so hard to pass the National Defense Authorization Act", Trump said as he thanked several lawmakers, including Rep. Martha McSally of Arizona and Rep. Elise Stefanik of NY.