Foreigners who hold master’s degrees or Ph.D.’s from American universities will have an edge over other foreign citizens seeking H-1B visas to work in the United States, thanks to a provision tucked into the vast spending bill that Congress approved on Saturday. (Subscription required.)