The US Senate bucked outgoing President Donald Trump during a rare Friday session, approving a defense spending bill the commander-in-chief has vowed to veto.

The 84-13 vote now sends the gargantuan $731 billion bill to the president’s desk. It cleared the House of Representatives on Tuesday, and in both chambers has secured a veto-proof majority.

The president could still exercise his veto powers, but that would almost certainly set up an embarrassing defeat in the waning days of his presidency.

Trump, now in his lameduck period, has vowed to veto the bill because it contains certain provisions he has voiced disapproval of while lacking others he has demanded. But a large chunk of his Republican partisans in both chambers bucked his threats in voting for the bill.

Trump has lambasted a requirement within the bill that the Defense Department rename military installations that bear the name of Confederate generals. The confederacy was a separatist movement that fought against the US in the mid-1800s to maintain the right to own Black people as slaves.

The bases, as well as monuments honoring Confederates, became a flashpoint of public protests following the police-involved killings of Black men, including George Floyd in May.

Trump has also threatened a veto if the bill does not include a provision repealing a statute known as Section 230 that shields social media companies from legal action over content posted by their users.

Trump and his Republican allies have sought to focus on Section 230 in their criticism of what they say are efforts by social media companies to censor conservative viewpoints.

In May, Trump issued an executive order calling for new regulations to be imposed on the legal protections, which are part of a largely defunct 1996 law that has been used to protect internet companies from lawsuits.

Section 230 is one of the few remaining parts of the Communications Decency Act, which was largely struck down by the Supreme Court over free speech concerns.

Despite his warning, the bill does not include any efforts to rescind the statute.

Copyright 2022 Anadolu Agency. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.