A historic tie-breaking vote by Vice President Pence was what saved the embattled nominee.
The 51-to-50 vote elevates Ms. DeVos — a wealthy donor from Michigan who has devoted much of her life to expanding educational choice through charter schools and vouchers, but has limited experience with the public school system — to be steward of the nation's schools.
Two Republicans voted against Ms. DeVos's confirmation, a sign that some members of President Trump's party are willing to go against him, possibly foreshadowing difficulty on some of the president's more contentious legislative priorities.
It was the first time that a vice president has been summoned to the Capitol to break a tie on a cabinet nomination, according to the Senate historian. Taking the gavel as the vote deadlocked at 50-50, Mr. Pence, a former member of the House, declared his vote for Ms. DeVos before announcing that Mr. Trump's nominee for education secretary had been confirmed.