The Senate confirmed Kristi Noem as secretary of Homeland Security, putting the South Dakota governor in charge of a sprawling agency.