Japan's top court paves way for relocation of US base