HARTFORD, Conn. (AP) - A Connecticut judge has dismissed a lawsuit by Newtown families against Triad based Remington Arms.

The company is the maker of the rifle used in the Sandy Hook Elementary School shooting.

The case was dismissed on a federal law that shields gun manufacturers from most lawsuits over criminal use of their products.

On Friday, Superior Court Judge Barbara Bellis granted a motion by the Madison company to strike down the lawsuit.

The lawsuit was filed by the families of nine children and adults killed and a teacher who survived the 2012 attack.

A gunman killed 20 children and six adults at the school with an AR-15-style rifle.

Bellis cited the Protection of Lawful Commerce in Arms Act passed by Congress in 2005 that protected gun makers from such lawsuits.

The families' lawyers said their lawsuit was allowed under an exception to the act, but Bellis disagreed. The families plan to appeal the decision.