New legislation described as a 'significant milestone' for Wales will see fresh measures to protect nature