(CNN) The Virginia House of Representatives and the Senate adopted a bill over the weekend that allows localities to take down Confederate statues and monuments, according to the governor's office and a delegate who supported the bill.

The legislation strikes a previous Virginia law that prohibited local governments from taking down or modifying war monuments, Democratic Del. Sally Hudson explained.

The bill, as passed by Virginia's House of Representatives, "provides that a locality may remove, relocate, or alter any monument or memorial for war veterans located in its public space, regardless of when erected," Virginia's Legislative Information System website states

Del. Delores L. McQuinn was chief patron for the legislation in the House, and Sens. Janet Howell and Jennifer McClellan were the bill's patrons in the Senate. CNN has reached out to all three for comment.

Sunday, the House of Representatives and the Senate approved the consensus draft of the bill, a version that was brought forth by the conference committee, a group that ironed out differences between the House and Senate versions of the legislation, Hudson told CNN.

Read More