Proposals to build an extension to a Blackpool primary school have got the go ahead from council planners.