The Supreme Court on Monday declined to take up a lawsuit that challenged former President Barack Obama's changes to Obamacare after insurers canceled millions of plans in 2013.

West Virginia is challenging the Obama administration's decision to not enforce certain provisions in Obamacare. The decision by the Supreme Court means that a lower court's ruling against the lawsuit stands.

The lawsuit challenged the administration for not enforcing statutory requirements for healthcare plans after insurers canceled millions of plans in fall 2013 before the first open enrollment. The requirements included the mandatory essential health benefits that must be in every plan.

In response to the cancellations, the Obama administration created a transitional policy that allowed some insurers to grandfather more plans and not follow the insurance mandates.

That didn't sit well with West Virginia. The state argued in its lawsuit that states had to decide if they were going to enforce mandates that the federal government gave some insurers a pass on.

West Virginia initially decided to enforce the mandates but then it opted not to after the Obama administration created the transition period. The state said the Department of Health and Human Services legally couldn't decline to enforce the provisions.

But lower courts found that West Virginia hadn't suffered any injury and denied the lawsuit.

Now, with the Supreme Court declining to take up the case, a July 2016 ruling from a federal appeals court will stand.

Obamacare opponents haven't had much success at the high court. The Supreme Court has upheld the law in several high-profile cases.

However, the opposition has had some success in the lower courts. For instance, a court ruled for a lawsuit filed by the House challenging the legality of Obamacare's cost-sharing subsidies was successful, but the case is now under appeal.