Trump's defence secretary denied claims that the US president was betraying Ukraine by initiating talks with Putin.