BRETT Kavanaugh has been sworn in as a US Supreme Court justice, hours after the Senate narrowly confirmed his appointment following a battle that rubbed raw the country’s cultural and political divides.

The near party-line vote - a victory for Donald Trump – was 50-48, capping a fight that seized the national conversation after claims emerged that Kavanaugh had sexually assaulted women three decades ago, which he denies.

Following the vote, Kavanaugh was driven to the Supreme Court building across the street from the Capitol for a private swearing in ceremony.

The Senate roll call vote was interrupted several times by protesters in the galleries shouting “Shame on you”, before they were removed by police.

Protesters then moved to mass on the Supreme Court steps, chanting: “We believe survivors,” while some banged on the doors.

Within minutes, dozens of political and advocacy groups condemned the vote.

Trump praised Kavanaugh for being “able to withstand this horrible, horrible attack by the Democrats”.

The vote gave Trump his second appointee to the court, and comes in the amidst of campaigning for next month’s mid-term elections.

Kavanaugh replaces the retired Justice Anthony Kennedy, who was a swing vote on issues such as abortion, campaign finance and same-sex marriage.