A shop is to be turned into a flat despite objections after planning approval was granted with conditions