Gov. Charlie Baker plans to sign a bill repealing archaic laws relating to abortion and contraception.

"We will sign that," Baker said, when asked by reporters at the Statehouse on Monday. "There are many folks in the women's health community that were particularly concerned about this. The lieutenant governor and I and other folks on our team discussed it, and we do plan to sign it."

The bill would repeal a number of archaic laws, some dating back to the 1600s, 1700s and 1800s. These include laws punishing adultery and fornication; criminalizing abortion and distributing information about abortion; requiring abortions be performed in a hospital; and prohibiting doctors from prescribing contraception to unmarried women.

The laws today are mostly unenforceable due to conflicting state and federal laws and court cases. But advocates for abortion rights worry that if the Supreme Court overturns Roe v. Wade, state laws restricting abortion could potentially become enforceable.

Baker is a Republican who supports abortion rights.

The Senate passed the bill unanimously in January. The House passed it last week by a vote of 138-9.

Senators called the bill the "NASTY Women Act," which stands for Negating Archaic Statutes Targeting Young Women. During the presidential campaign, Republican President Donald Trump called Democratic candidate Hillary Clinton a "nasty woman."