A primary school will have a relocated off-licence on its doorstep after an application to serve alcohol was approved.