The rulings in Maryland and Oregon come amid a shifting legal landscape in the wake of a Supreme Court decision that has imposed new limits on gun regulation.

In the wake of a landmark U.S. Supreme Court decision last year that significantly limits what the government can do to restrict guns, states led by Democrats have scrambled to circumvent or test the limits of the ruling. A few have approved new gun restrictions. Oregon even passed a ballot initiative to ban high-capacity ammunition magazines.

But this week, supporters of the new gun measures suffered a pair of setbacks, underscoring the rippling effect of the court’s decision.

On Tuesday, a three-judge panel of the U.S. Court of Appeals for the Fourth Circuit in Richmond, Va., ruled that a 10-year-old Maryland law related to licensing requirements for handguns was unconstitutional.