An Islamic charity’s bid to turn a former pub into a religious and educational centre has been given the green light.