About it reports a press-service of the White house.
McCain said in a statement he was "humbled" the bill was named after him, adding that it will address "a growing array of threats".
Sen. Lindsey Graham, R-S.C., and other lawmakers have criticized the idea of reducing troop levels. "We know the real truth, but I won't say it today".
The measure authorizes a 2.6 percent pay raise for troops - the largest in almost a decade. "It is not enough to merely have an American presence in space; we must have American dominance in space, and that is why just a few days ago, the vice president outlined my administration's plan to create a sixth branch of the United States military called the United States Space Force".
Congress named the legislation for Senate Armed Services Committee Chairman John McCain, Arizona Republican, who is battling brain cancer.
Trump has openly mocked and criticized McCain in a feud that began in 2015 when the president said McCain was not a war hero.
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.
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 measure also addresses child-on-child sexual assault at US military bases worldwide, an issue an Associated Press investigation revealed this spring.
The measure includes $284 million in funds to support the U.S. Army's integration of its Patriot missile defense platform with the Terminal High Altitude Area Defense system and the procurement of 13 new combat ships, including a $1.56 billion budget for three littoral combat ships.
Apart from Turkey, the U.S., U.K., Italy, the Netherlands, Canada, Australia, Norway and Denmark are also present as participant members of the F-35 fighter jet program.