President Donald Trump's controversial nominee for the Supreme Court, Brett Kavanaugh, has been sworn in following weeks of rancorous debate. The Senate earlier backed his nomination by 50 votes to 48.
Mr. Kavanaugh had been embroiled in a bitter battle to stave off claims of sexual assault, which he denies, but after an 11th hour investigation by the FBI into the allegations, enough wavering senators decided to support the nomination.
His confirmation hands Mr Trump a political victory ahead of key mid-term elections in November. Ahead of the vote, hundreds of people protested against Mr Kavanaugh's nomination at the US Capitol in Washington.
During the vote, other protesters shouted shame from the public gallery and Vice-President Mike Pence had to call for order to be restored.
Mr Kavanaugh's appointment is for life and he will strengthen conservative control of the nine-judge court, which has the final say on US law.
The 53 year old was sworn in on Saturday evening in a private ceremony at the Supreme Court. Chief Justice John Roberts administered the constitutional oath and retired justice Anthony Kennedy - whom Mr Kavanaugh is replacing - administered the judicial oath.
Protesters had gathered outside the court and at one point some ran up the steps and banged on its ornate doors. Other demonstrators climbed on the nearby statue of justice.
President Trump sent out a tweet of congratulations and later spoke to reporters aboard Air Force One, saying Mr Kavanaugh had withstood a horrible attack by the Democrats and that women were outraged at what had happened to the nominee.
Mr Trump also said he was 100% certain that the woman who had accused Mr Kavanaugh of sexual assault, Christine Blasey Ford, had named the wrong person.
The Senate is split 51-49 in favor of the Republicans and the vote was largely along party lines. In the end, there was indeed a two-vote margin, the closest nomination vote since 1881.
The only party dissenters were Republican Senator Lisa Murkowski, who had intended to vote no, and Democrat Joe Manchin, who voted yes.
That should have meant a 51-49 tally, but the absence of Republican Steve Daines, a yes vote who was at his daughter's wedding, altered the final figures.
Ms Murkowski opted instead to simply mark herself as present, leaving the final vote 50-48.
All eyes will now be on November's mid-term elections. Mr. Trump will be able to campaign on the back of an important victory, but commentators will be watching closely how the Kavanaugh affair affects women voters.