Donald Trump has spoken up in favour of a controversial skilled worker visa program, appearing to side with Elon Musk.