Legislation that would prohibit the University of Wisconsin System from advocating the use of emergency contraception or providing it to students would be unconstitutional if passed, Attorney General Peg Lautenschlager said Tuesday in an advisory opinion.