US President Donald Trump said he had a "great meeting" with German Chancellor Angela Merkel on the sidelines of a Nato summit on Wednesday, hours after he fiercely criticised German policy on defence spending and gas imports from Russia.