I answered your question. The federal government does not have the power to regulate contracts of insurance. That means that the federal government cannot prohibit inserting a clause requiring disclosure of genetic information in a contract of insurance. 

I am not aware of any federal law making it " illegal for a doctor to tell a woman the sex of her fetus until she was well along in her pregnancy". Perhaps you could name the statute and give the section number?