The secretary of state has gone from presidential rival to loyal lieutenant amid a foreign policy blitz