Softening his stance on immigration, former U.S. president Donald Trump has promised to give automatic green cards to foreign students who graduate from U.S. colleges to prevent them from returning to their home countries like India and China where they become multibillionaires.

Mr. Trump’s departure from the anti-immigrant rhetoric comes ahead of the November presidential election in which immigration and deportation of illegal immigrants are among the key issues for voters.