Latvia's parliament has approved a new law that will see properties confiscated from Jews during World War II to be returned to the country's Jewish community.