Israeli court upholds apartheid