US President Joe Biden has called Japan and India "xenophobic", grouping them together with Russia and China as countries that "don't want immigrants".