The US Senate has confirmed the appointment of a controversial Indian American jurist, Neomi Rao, to an important judgeship that was vacated by an appointee to the Supreme Court.