Legislature passes amendment to attract more foreign talent