A federal judge upheld two Virginia laws that restrict access to abortions and struck down two others on Monday.

U.S. District Judge Henry Hudson upheld a mandate for women to get an ultrasound 24 hours prior to an abortion and a law requiring all abortions be performed by physicians, The Associated Press reported. The latter prevents nurse practitioners and physician's assistants from performing the procedures.

ADVERTISEMENT

The judge overturned the other two contested laws, one of which mandated all second-trimester abortions to be completed in a licensed outpatient hospital. The other would have obligated all clinics that conduct first-trimester abortions to meet the criteria as general and surgical hospitals, according to the AP.

States across the country passed stricter abortion restrictions this year, with some enacting de facto bans on the procedure. Many of those laws are being challenged in court.

The ruling prompted mixed emotions from women's rights advocates, including Rosemary Codding, the founder and director of the Falls Church Healthcare Center.