RICHMOND, Va. (CBSDC/AP) — Virginia Gov. Bob McDonnell on Wednesday signed into law a controversial bill that requires women to have abdominal ultrasound exams before undergoing abortions.

The Republican governor’s signature means the mandate takes effect in July for abortion providers across Virginia.

The bill not only sparked protests the past three weeks by angry women’s rights groups and others that led to 30 arrests at the Capitol Saturday, it subjected Virginia to scorn by columnists and political talk shows and ridicule from television comedians.

It was part of a wave of conservative legislation that had perennially failed in the General Assembly until Republicans gained control of both the House and Senate in the 2011 elections.

Other bills would have stripped state funding for abortions sought by indigent women carrying fetuses that have profound and incapacitating deformities, and would have given embryos full rights of personhood from the moment of conception, a step that would outlaw almost all abortions and even some forms of contraception if the 1973 U.S. Supreme Court ruling that legalized abortion is overturned.

The ultrasound bill initially called for a vaginally invasive form of the examination. After Capitol Square protests, Democratic legislators accusing the bill’s GOP backers of sanctioning “state-mandated rape” and being lampooned during a Weekend Update segment on “Saturday Night Live” and “The Daily Show with Jon Stewart,” McDonnell had his party remove the “transvaginal ultrasound” requirement.

(TM and Copyright 2012 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2012 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)