Erdogan was condemned by Washington for his purchase of the Russian S-400 missile defence system in 2017.