Japanese court upholds dual nationality ban