Former Maryland Gov. Martin O'Malley will take on the role of head of the Social Security Administration after the Senate voted to confirm him.