The country is hoping its new amnesty for undocumented immigrants will avoid a public backlash.