WASHINGTON  Retired Gen. James Mattis appeared headed for confirmation as defense secretary after he told a Senate panel yesterday that Russia is the nation’s “principal threat” and promised to always give “frank advice” to President-elect Donald Trump.