Members of the U.S. military this month will receive their largest pay increase in eight years.
The act saw an overall increase in military spending and the acquisition of new defense equipment. Among the budgeted expenses are F-35 Joint Strike fighters, ground combat vehicles, and Virginia-class submarines.
The bill will also increase the size of the American Armed Forces for the first time in seven years.
“History teaches us that when you weaken your defenses, you invite aggression," Trump said at a ceremony signing the bill. "The best way to prevent conflict is to be prepared, and really be prepared. Only when the good are strong will peace prevail.”
The bill marks the beginning of an undoing of a series of budget cuts to the military in recent years.
Trump said those cuts had “severely impacted our readiness, shrunk our capabilities, and placed substantial burdens on our warfighters.”
Defense Secretary James Mattis told Congress in June that “No enemy in the field has done more to harm the combat readiness of our military than sequestration.” Sequestration refers to automatic, across-the-board budget cuts to discretionary spending, which includes spending on the military.
The NDAA, however, has yet to receive funding from the appropriations committees in Congress.
Last month the House and Senate passed a continuing resolution to keep the government funded to Jan. 22, 2018.
On Tuesday, the president said that the Democrats are seeking to shut down the government over the Deferred Action for Childhood Arrivals (DACA) amnesty they are seeking.
Trump and other Republican leaders have tried to negotiate a deal with Democrats that include a solution to DACA as well as the funding for a border wall, and changes to the immigration system, including limitations to chain-migration and an end to the diversity lottery program.
"The Democrats want to shut down the Government over Amnesty for all and Border Security," Trump wrote on Twitter. "The biggest loser will be our rapidly rebuilding Military, at a time we need it more than ever. We need a merit based system of immigration, and we need it now! No more dangerous Lottery."
Trump has stressed the importance of increased security on the southern border to stem the influx of illegal aliens and opioids. He has demanded that any deal on DACA would include improved border protection, to prevent a new wave of illegal crossings.
"We must have Security at our VERY DANGEROUS SOUTHERN BORDER, and we must have a great WALL to help protect us, and to help stop the massive inflow of drugs pouring into our country!," Trump wrote on Twitter.