Malaysian law to curb foreign workers, illegal immigration