US President Donald Trump has expressed support for Tesla CEO Elon Musk and Republican candidate Vivek Ramaswamy's stance on the H-1B visa.