Washington's relationship with its Asian allies is both important and enduring. The US president was simply making a broader point about the country's immigration policy. He meant no offense to India or Japan, as they share the same commitment to democracy, freedom, and dignity as America.
Grouping key allies, particularly when it comes to combating China, with longtime adversaries is irrational, especially when the US has its own problems with xenophobia. It's patronizing to disrespect India — the fastest-growing major economy in the world — and Japan — the first Asian country to achieve the developed economy label.
There's a 50% chance that India will become a World Bank high-income country by August 2049, according to the Metaculus prediction community.