Musk, whose relationship with Trump deteriorated earlier this year, initially defended the H-1B visa system but reversed course within a day, calling for “major reform” of what he described as a “broken” programme.