The vote came after Republicans who had initially questioned her experience and judgment fell in line behind her nomination.