Poland's president Andrzej Duda has approved a law that will make it harder for Jewish people to recover property lost during and after World War Two.