Announcing the new law, the Ministry of Justice said the pardons apply automatically to deceased men who were convicted for consensual same-sex relations before homosexuality was decriminalized several decades ago.