The Senate on Monday confirmed Dr. Miguel A. Cardona as Secretary of Education, formally replacing Betsy DeVos, who led the Education Department of four years under President Trump.