The biggest biotechnology company in Japan almost didn't get built.