Trump pulls diplomatic backflip, praising May after barbs