Once it is signed by the president, convicted foreigners or citizens could face up to three years in jail or fines.