The Massachusetts Appeals Court on Friday blocked a much-anticipated auction next week of art from the Berkshire Museum, including two paintings by Norman Rockwell.

Those works — including one titled “Shuffleton’s Barbershop,” with an estimated price of $20 million to $30 million — are among seven from the Pittsfield, Mass., museum that were scheduled to be offered for sale Monday by Sotheby’s in New York in an effort to raise money the museum considers essential to its survival.

The sale had been opposed by two groups of plaintiffs, including Rockwell’s sons, as well as the office of the Massachusetts attorney general, which said that it would violate various trusts and restrictions related to how the works must be handled. The attorney general, Maura Healey, who had been seeking additional time to examine the museum’s plan, asked the court on Friday for an injunction halting the sale.

The court granted that request, saying that allowing the sale created more of a risk than stopping it. The ruling prohibits the museum “from selling, auctioning or otherwise disposing of any of the artworks that have been listed for auction.”