The H-1B visa program, which has been instrumental in providing American companies access to worldwide talent, is now entwined in a risky legal and political battle concerning the extent of executive power and the position of the US in technology and innovation sectors.