A new rule will replace the long-standing lottery used to grant H-1 B visas with a new weighted system.