The bill also authorizes billions of dollars for military construction, including family housing.
His wife, Cindy McCain, meanwhile, retweeted a tweet from CBS News that noted Trump had neglected to mention McCain at the signing.
McCain, an Arizona senator and chairman of the Senate armed services committee has been a vocal critic of Trump.
Eventually, the United States said it would lift the denial order if ZTE paid a fine of at least $1.3 billion and replaced its senior management and board.
"With this new authorization, we will increase the size and strength of our military by adding thousands of new recruits to active duty, reserve, and National Guard units, including 4,000 new active-duty soldiers. Adversaries are weaponizing space", Trump said.
President Donald Trump waves as he walks on the South Lawn of the White House after stepping off Marine One Monday Aug. 13 2018 in Washington. (AP
However this practice has been formalised by the passing of the Defense Authorization Act, which prohibited the use of "Telecommunications equipment produced by Huawei Technologies Company or ZTE Corporation (or any subsidiary or affiliate of such entities)".
He said there was "no better place than right here at Fort Drum" to celebrate passage of the bill, which will boost military pay by 2.6%, giving service members their largest increase in nine years.
McCain tweeted that he was "humbled" that Congress chose to name the bill after him.
We've got more newsletters we think you'll find interesting.
The White House opposed putting stronger measures against the companies in the bill, and the measures were softened before lawmakers held their final vote.
Critics say such a move would play into the hands of North Korea and China, . which wish to see USA troops removed from near their border.
An amendment to the NDAA prohibits F-35 sales to Turkey until the Pentagon issues a report on Turkish-American relations in 90 days. More than $36 billion is going toward improving USA naval capacity, and $40 billion will go toward improving our aviation - including 77 new F-35 fighter jets. The mandate to produce a study came after an earlier version proposed to bar the delivery of F-35s to Turkey.
Donald Trump boosted anti-Obama ‘birther’ movement because he’s black: Omarosa
In the book, she wrote of Trump's feelings about Obama - how he talked about the former president often, and even "hated" him. White House Counselor Kellyanne Conway said Sunday on ABC that there are "confidentiality agreements" in the West Wing.
Chelsea Confirmed Lineup vs Huddersfield: Kepa, Jorginho make Premier League debut
After quite a few attempts to sign him, the eventual £150m valuation was just not good enough for the Spanish giants to get the attention of Chelsea .
Jack Wilshere Starts - West Ham Team vs Liverpool Confirmed
This is a policy that Manuel Pellegrini employed when he was at Manchester City , but he was playing with better players. West Ham offered little as the hosts dominated, but Klopp was reluctant to decribe the performance as flawless .