As late as 1986, the Supreme Court upheld a state law forbidding certain homosexual acts. But, in 2003, the Court struck down state laws banning consensual sexual relations between same-sex partners. In the 2000s, while some states legalized same-sex marriage and other states outlawed it, public opinion shifted in favor of allowing gays and lesbians to marry, rising from 35 percent, a minority, in favor in 2001 to 47 percent, a plurality, in favor in 2012. In 2013, the Court struck down as unconstitutional the federal Defense of Marriage Act, declaring that the federal government must provide gay couples married in states where same-sex marriage is legal with the same health, tax, and other benefits that heterosexual married couples receive. In 2015, the Supreme Court ruled that same-sex marriage is constitutional.