Electric vehicle manufacturer Tesla has reportedly hired foreign workers with H-1B visas after a wave of layoffs in the U.S.