President signs laws against rehabilitation of Nazism and extremism