The Senate confirmed the nomination of the WWE co-founder, who has scant experience in schools, by a vote of 51-45.