The former lawmaker faced questions about her level of experience and past comments about autocratic leaders, but ultimately the Senate confirmed her on Wednesday afternoon.