Plans for a new swimming pool and leisure centre in a deprived Bradford area, first announced over a decade ago, have been approved.