President Donald Trump has spent much of his time in office berating and threatening his NATO allies.