Silicon Valley is reeling from government threats to the H-1B visa program as foreign students are choosing to leave the U.S.