To enter SPI mode the CS pin needs to be pulled down.
However the CS input pin has an internal pull-up resistor.
Hence to put the chip into SPI mode the CS pin needs to be connected to 0v and not to D8.
At least that is my reading of the BME280 data sheet.