Brett Kavanaugh sworn in as U.S. Supreme Court justice after bitterly divided confirmation

WATCH: Brett Kavanaugh was sworn in as a justice of the U.S. Supreme Court in a private ceremony on Saturday.

Brett Kavanaugh was sworn in as a Supreme Court justice Saturday night after a deeply divided U.S. Senate narrowly confirmed him. The Senate vote came as Republicans dismissed sexual assault accusations against the conservative judge and delivered a major victory to President Donald Trump.

Kavanaugh was quickly sworn in at the court building, across the street from the Capitol, even as protesters chanted outside.

By a vote of 50-48, the Senate gave a lifetime job to Kavanaugh, 53, after weeks of fierce debate over sexual violence, alcohol abuse and privilege that convulsed the nation just weeks before congressional elections on Nov. 6.

Kavanaugh’s confirmation takes the highest U.S. court down a more conservative path for perhaps a generation and is a bitter blow to Democrats already chafing at Republican control of the White House and both chambers of the U.S. Congress.

Adding to the drama, women protesters in the Senate gallery shouting, “Shame on you,” briefly interrupted the start of the final confirmation vote on Saturday afternoon.

A formal investiture ceremony will take place at a special sitting of the Court in the Courtroom at a later date.

Kavanaugh‘s nomination became an intense personal and political drama when university professor Christine Blasey Ford accused him of sexually assaulting her when they were high school students in a wealthy suburb of Washington in 1982.

Two other women accused him in the media of sexual misconduct in the 1980s.

Christine Blasey Ford is sworn in before testifying the Senate Judiciary Committee in the Dirksen Senate Office Building on Capitol Hill September 27, 2018 in Washington, DC.

Win McNamee/Getty Images

Kavanaugh fought back hard, denying the accusations in angry and tearful testimony before the Senate Judiciary Committee that was viewed live on television by around 20 million people.

Trump stood by Kavanaugh, a federal appeals court judge with a history of advancing Republican causes, and this week mocked Ford’s account of what she says was a drunken attack on her by Kavanaugh when they were teenagers.

I applaud and congratulate the U.S. Senate for confirming our GREAT NOMINEE, Judge Brett Kavanaugh, to the United States Supreme Court. Later today, I will sign his Commission of Appointment, and he will be officially sworn in. Very exciting!

‘Vote them out!’

Hundreds of protesters against Kavanaugh had gathered on Saturday on the grounds of the Capitol and at the Supreme Court. They chanted, “Vote them out! Vote them out!” and carried signs including, “I am a survivor, not a troublemaker!”

WATCH: ‘Difficult time for the country…for survivors’: Sen. Manchin comments on Kavanaugh confirmation

A townhouse near the Washington residence of Republican Senator Susan Collins, whose backing for Kavanaugh helped get him over the line on Saturday, flew the flag of her home state Maine upside down in protest.

Trump, seeking a legacy as the president who put a strongly conservative stamp on the court, said on Saturday before the vote that Kavanaugh would do “great, great” job there.

Trump also said he is “100 per cent” certain that Ford named the wrong person when she accused Brett Kavanaugh of sexual assault in testimony during his Supreme Court nomination hearings. Trump’s words echoed the words of Ford in her Senate testimony that she was “100 per cent” certain it was Kavanaugh who sexually assaulted her.

“This is one of the reasons I chose him is because there is no one with a squeaky clean past like Brett Kavanaugh. He is an outstanding person and I’m very honoured to have chosen him,” Trump told reporters aboard Air Force One while flying to a campaign rally in Kansas.

“We’re very honoured that he was able to withstand this horrible, horrible attack by the Democrats.”

His confirmation will allow Trump to hit the campaign trail ahead of the elections saying that he has kept his 2016 promise to mold a more conservative American judiciary.

Democrats said Kavanaugh‘s partisan defense of himself, in which he said he was victim of a “political hit,” was enough itself to disqualify him from the court.

Repeatedly during the Senate debate, Republicans accused Democrats of staging a “smear” campaign against Kavanaugh to prevent a conservative becoming a Supreme Court justice.

The accusations against Kavanaugh energized the #MeToo social media movement that emerged after high-profile accusations of sexual assault and harassment by men in politics, the media and the entertainment industry.

Kavanaugh has joined four liberal justices and four other conservatives in the Supreme Court, which is expected soon to hear controversial disputes involving abortion, immigration, gay rights and voting rights.

The dispute over Kavanaugh has added fuel to campaigning for the midterm elections in November when Democrats will try to take control of Congress from the Republicans.