It was a surprising turnabout after weeks in which Trump fiercely criticised NATO members for not doing more to help the US