President Ramaphosa signs new legislation into law