Japan’s benchmark stock-market average climbed on Thursday after the Greek parliament approved a bailout plan.