Amid opposition, court orders workplan for relocation of US base in Japan