The move to curtail H-1B visas threatens to rewrite the rules for a decades-old model that underpins much of the technology behind the world’s largest corporations.