HARTFORD - Gov. Dannel Malloy today signed into law a bill to prevent the release of images and evidence from the Sandy Hook Elementary School shooting.

Both chambers of the General Assembly passed the bill early this morning, the last day of the legislative session.The law takes effect immediately.

The law applies to all homicide cases, not just Newtown, and blocks photos and videos of homicide victims from being released. The law creates an exemption under the state's Freedom of Information Act.

Malloy had pushed for special protection of the families of the 26 victims killed at Sandy Hook elementary school.

The Connecticut chapter of the American Civil Liberties Union said that the bill was pitched, pushed and passed in haste and without input from the public. It is not sure if it is going to challenge the law in court.