Court in Japan blocks plan to restart nuclear plant