The H-1B visa controversy pits tech companies that want reliable access to highly skilled workers against populists pushing a tough “hire American” policy.