Japanese court allows restart of 2 nuclear reactors