The US Senate has unanimously confirmed Marco Rubio as secretary of state, giving Donald Trump the first member of Cabinet in his new administration.