If genetic engineering is illegal in the Federation, why is there a Federation genetic engineering station trying to produce a superior breed of Human in the early TNG episode "Unnatural Selection"?

Plotline

Bashir is chosen as the template for the new Long-term Medical Hologram. But to gather an accurate personality profile, Doctor Zimmerman wants to interview Julian's parents - and that just might drag up some uncomfortable truths.