The Jewish high priests knew very well that Hazrat Mariam [ra] was married to Joseph , the carpenter. Hazrat Isa [AS] was their child. When Hazrat Mariam [RA] took him to the temple when he was grown up, the high priest let them in. Had he not been a legitimate child, they would not let them inside the temple. When the Christian started claiming about virgin birth drama, they started insulting the character of Hazrat Marim [ra]. See some samples below.
Insults Against Blessed Mary, Sanhedrin 106a . Says Jesus' mother was a whore: "She who was the descendant of princes and governors played the harlot with carpenters." Also in footnote #2 to Shabbath 104b it is stated that in the "uncensored" text of the Talmud it is written that Jesus mother, "Miriam the hairdresser," had sex with many men.
"Jesus was a bastard born of adultery." (Yebamoth 49b, p.324).
"Mary was a whore: Jesus (Balaam) was an evil man." (Sanhedrin 106a &b, p.725).
"Jesus was a magician and a fool. Mary was an adulteress". (Shabbath 104b, p.504).
[The Talmud is made up of two separate works: the Mishnah, primarily a compilation of Jewish laws, written in Hebrew and edited sometimes around 200 C.E. in Israel; and the Gemara, the rabbinic commentaries and discussions on the Mishnah, written in Hebrew and Aramaic, which emanated from Israel and Babylonia over the next three hundred years. There are two Talmuds: the Y’rushalmi or Jerusalem Talmud (from Israel) and the Bavli or Babylonian Talmud. The Babylonian Talmud, which was edited after the Jerusalem Talmud and is much more widely known, is generally considered more authoritative than the Jerusalem Talmud]