Mr. Trump’s threat came shortly before Republicans joined Democrats Tuesday in the House to approve the bill, which authorizes $740 billion in fiscal year 2021 for the Defense Department and Energy Department’s national security programs. That includes a 3% pay raise for troops, funds for military house upgrades, and $1 billion for coronavirus response. The vote was 295-125, more than the two-thirds supermajority needed to override a potential veto.

The National Defense Authorization Act contains language requiring the Defense Department to change the names of all bases named for leaders of the Confederacy within one year and prohibiting the public display of the Confederate flag on military installations. A Senate version of the massive defense bill, which is expected to pass later this week, includes language, championed by Sen. Elizabeth Warren (D., Mass.), requiring that the base names be changed within three years.