The US Senate voted to confirm Brett Kavanaugh as an associate justice on the US Supreme Court.