In the end, Congress decided on a measure that will essentially ban the U.S. government or anyone that wants to work with the United States government from using components from Huawei, ZTE, or a number of other Chinese communications companies.
Trump added that a strong military requires a robust USA economy, which he said helps provide funding for new equipment, pay increases for soldiers and reduces the unemployment rate for veterans. John McCain, who viewed the yearly military spending bill as one of his top priorities.
"We are proudly giving our troops the biggest pay increase in a decade", Trump said. At campaign rallies, Trump regularly castigates McCain - without outright naming him - for casting a dramatic thumbs-down vote that doomed Trump's effort previous year to repeal the Affordable Care Act, which was enacted by President Barack Obama.
In a statement marking the signing, McCain never mentioned Trump, with whom he has clashed on a range of issues from health care to the Helsinki summit with Russian President Vladimir Putin. "We must have American dominance in space".
The measure authorizes $7.6 billion for 77 new F-35 "stealth" Joint Strike Fighter jets built by Lockheed Martin, and $24.1 billion to fund the construction of 13 new battle force ships.
"Serving as chairman of the Senate Armed Services Committee and working on behalf of America's fearless service members has been one of the greatest honors of my life".
At a June rally, Trump criticized McCain for voting against a Republican bill to repeal the Affordable Care Act, saying that "one senator chose to put the thumb down, late in the morning".
The measure authorizes $500 million for the co-development and co-production of missile defense systems with Israel.
The bill gives the Pentagon a $638 billion base budget for defence-related programmes linked to the Department of Energy plus an additional $69 billion for possible overseas operations.
The bill is called the John S McCain National Defence Authorisation Act for Fiscal Year 2019.
The law also bars the US from selling F-35 fighter jets to North Atlantic Treaty Organisation member Turkey. Mr. Trump blasted her on Twitter as a "lowlife" and "not smart". "We know the real truth, but I won't say it today".